• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

t:selectBooleancheckbox data from datatable

 
Praful Sinha
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic