January 2013
Intermediate to advanced
328 pages
7h 14m
English
selectBooleanCheckbox and selectManyCheckbox extend the default JSF components <h:selectBooleanCheckbox> and <h:selectManyCheckbox> respectively to provide skinning.
Basic definitions for selectBooleanCheckbox and selectManyCheckbox would be as follows:
<p:selectBooleanCheckbox value="#{selectCheckboxController.selectedValue}" />
<p:selectManyCheckbox value="#{selectCheckboxController.selectedCountries}">
<f:selectItem itemLabel="Turkey" itemValue="Turkey" />
<f:selectItem itemLabel="Germany" itemValue="Germany" />
<f:selectItem itemLabel="Switzerland" itemValue="Switzerland" />
</p:selectManyCheckbox>Adding labels to the checkbox is easy with the itemLabel attribute. itemLabel ...
Read now
Unlock full access