on 12-12-2007 12:41 PM
Hi guys,
We have defined a tableview in the jsp. And we have inserted elements like inputfield, checkbox in the cells of the table. How I can get the value when the user gives in something in the inputfield.. This can be done by getting the id of the inputfield defined in a column in my tableview. From id I can retrieve the value by getValue() method. Right now I am able to retrieve the id of the tableview by using Tableview tv = (TableView) getComponentByName("the name of the id defined for tableview in jsp"); in the jspdynpage. But I am not able to retrieve the id of the inputfield inserted in the tableview... Kindly help..
Regards,
Priyanka.
Hi,
Try this code
IPortalPageContext portalPageContext = this.getPageContext();
AbstractDataType abstractDataType = pageContext.getDataForComponentId("tabeleId", "elementId", row);
/message/2079638#2079638 [original link is broken]
Hope it helps you
Jakub Krecicki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this code
IPortalPageContext portalPageContext = this.getPageContext();
AbstractDataType abstractDataType = pageContext.getDataForComponentId("tabeleId", "elementId", row);
/message/2079638#2079638 [original link is broken]
Hope it helps you
Jakub Krecicki
Hi Priyanka,
You should not try with ID of the InputField. You should try like this.
Get the table.Get the column.In loop get the values.
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.