Let us see how to use <p:selectCheckboxMenu>
to select multiple options, by performing the following step:
Create a form with the
<p:selectCheckboxMenu>
component as follows:<h:form> <p:panel header="SelectCheckboxMenu" style="width: 400px; height: 500px; margin: 0 auto;"> <p:messages autoUpdate="true"/> <h:panelGrid style="margin-bottom:5px" cellpadding="3"> <p:selectCheckboxMenu value="#{selectionController.selectedSearchInOptions}" label="Search In" filter="true" filterText="Filter" filterMatchMode="startsWith" panelStyle="width:220px"> <f:selectItems value="#{selectionController.searchInOptions}" /> </p:selectCheckboxMenu> </h:panelGrid> <p:commandButton value="Submit" update="display"/> <h:outputText id="display" value="Value : #{selectionController.selectedSearchInOptions}" />...