wood burning stoves 2.0*
The moose likes JSF and the fly likes t:selectBooleancheckbox data from datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "t:selectBooleancheckbox data from datatable" Watch "t:selectBooleancheckbox data from datatable" New topic
Author

t:selectBooleancheckbox data from datatable

Praful Sinha
Greenhorn

Joined: Jan 25, 2008
Posts: 18
Hi All,

I have Index page which contains datatable with list of data along with select(column) option using selectboolencheckbox component in each row. How can i get the value of each row selected boolean option of datatable in my Managed bean when ever i select a commondbutton option below datatable index.

Please help me i am in need.

Thanks and Regards,
Praful Sinha
K Thilak
Greenhorn

Joined: Oct 06, 2006
Posts: 3
Declare one boolean variable in your managed bean.
Then set that variable in the selectboolencheckbox's value attribute(like setting other column values).
Now, you got the selected row value(boolean variable value set to true)in your managed bean.
 
Don't get me started about those stupid light bulbs.
 
subject: t:selectBooleancheckbox data from datatable
 
Similar Threads
Create row index in dataTable
Adding subrow with additional information for each row in dataTable
How to access the current row index in dataTable
Gather dataTable with selectOneMenu to bean
problem h:selectOneRadio