How to use JSF's h:selectBooleanCheckbox with h:dataTable to create one object per row?

Posted by c0d3x on Stack Overflow See other posts from Stack Overflow or by c0d3x
Published on 2010-03-26T15:42:31Z Indexed on 2010/03/26 16:23 UTC
Read the original article Hit count: 393

Filed under:
|
|
|

I have a Facelets page with a h:dataTable. In each row of the h:dataTable there is a h:selectBooleanCheckbox. If the checkbox is selected a new Object should be created with the data out of the corresponding row.

  1. How do I do this?
  2. How to get the selected rows or their data in a backing bean?
  3. Or would it be better to do it with h:selectManyCheckbox?

© Stack Overflow or respective owner

Related posts about jsf

Related posts about facelets