Time for action – using SelectManyMenu
Let us see how to use <p:selectManyMenu>
with POJOs and the showCheckbox
attribute, by performing the following step:
- Create a form with
<p:selectManyMenu>
components:<h:form> <p:panel header="SelectManyMenu"> <h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5"> <h:outputText value="Basic SelectManyMenu: " /> <p:selectManyMenu value="#{selectionController.numbers}"> <f:selectItem itemLabel="One" itemValue="1" /> <f:selectItem itemLabel="Two" itemValue="2" /> <f:selectItem itemLabel="Three" itemValue="3" /> </p:selectManyMenu> <h:outputText value="SelectManyMenu using POJO: " /> <p:selectManyMenu value="#{selectionController.selectedTagsFromPojos}" var="t"...