Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSF and the fly likes Load h:selectManyCheckbox with items selected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Load h:selectManyCheckbox with items selected" Watch "Load h:selectManyCheckbox with items selected" New topic

Load h:selectManyCheckbox with items selected

Ovidiu Stanciu

Joined: Oct 23, 2007
Posts: 2

Could someone tell me how to load a h:selectManyCheckbox with all the checkboxes selected by default (when i load the page)?

Thank you.
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

example program:

Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
I agree. Here's the link:
subject: Load h:selectManyCheckbox with items selected
Similar Threads
h:selectBooleanCheckbox required validation
How to delete items from the cart through jsf
ajax4jsf: how to get selected value(s) from component with f:selectItems
using h:selectManyCheckbox inside h:dataTable
selectManyCheckBox doesnt popolate the values selected