How to use JSF's h:selectBooleanCheckbox with h:dataTable to create one object per row?
- by c0d3x
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.
How do I do this?
How to get the selected rows or their data in a backing bean?
Or would it be better to do it with h:selectManyCheckbox?