voyent
how can i access attributes of row in dataTable in my backing bean  XML
Forum Index -> Components
Author Message
manjinder

Joined: 01/Oct/2007 00:00:00
Messages: 13
Offline


hi all

how can i access attributes of row in dataTable in my backing bean on double cliking the row of data table.
pls help me.
Thanks

Manjinder Aulakh
+919971409890
India
[Email]
qpid

Joined: 09/Nov/2007 00:00:00
Messages: 21
Offline


I think what you need is a ice:rowSelector

Code:
<ice:rowSelector  value="#{value.selected}" ... selectionListener="#{value.rowSelected}">


Code:
public void rowSelected(RowSelectorEvent event) {
 for (Bean beanl : beans) {
 			if (bean.isSelected()) {
 				... do your stuff here ...
 			}
 		}
 }


Your bean have to implement isSelected() and setSelected(). So the rowSelector mark the clicked bean (row)

regards qpid

manjinder

Joined: 01/Oct/2007 00:00:00
Messages: 13
Offline



Thank you for helping me,
I will do in this way
Thanks again

Manjinder Aulakh
+919971409890
India
[Email]
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team