May 2015
Beginner to intermediate
412 pages
8h 44m
English
The orderList component is used to sort a collection with the support of drag-and-drop reordering, transition effects, and POJO support.
A basic definition for the orderList that sorts a collection of strings would be as shown here:
<p:orderList id="simple" value="#{orderListBean.countries}"
var="country" itemLabel="#{country}" itemValue="#{country}" />The visual output of the component will be as shown here:

To define a header on top of orderList, a facet with the name caption should be provided as shown here:
<p:orderList id="withCaption" value="#{orderListBean.countries}" var="country" itemLabel="#{country}" ...Read now
Unlock full access