Time for action – using the advanced PickList component
Let's look at creating a PickList component backed by a collection of POJOs using converter, by performing the following steps:
- Create a user-role management form with the PickList component:
<p:growl id="msg" escape="false" /> <p:pickList id="pojoPickList" value="#{pickListController.roles}" converter="#{roleConverter}" var="role" itemValue="#{role}" itemLabel="#{role.roleName}" showSourceControls="true" showTargetControls="true" showSourceFilter="true" showTargetFilter="true" showCheckbox="true" filterMatchMode="contains" effect="bounce"> <f:facet name="sourceCaption">Available Roles</f:facet> <f:facet name="targetCaption">Assigned Roles</f:facet> <p...