May 2015
Beginner to intermediate
412 pages
8h 44m
English
A collection of data in a list layout is presented by dataList with several display types and features, such as AJAX pagination.
A basic definition of a data list with a header facet for listing the names of countries starting with the letter "A" would be as follows:
<p:dataList id="simple" value="#{dataListBean.countriesShort}"
var="country" itemType="disc">
<f:facet name="header">
Countries starting with 'A'
</f:facet>
<h:outputText value="#{country}" />
</p:dataList>By default, the dataList component renders an unordered list, which corresponds to the <ul> HTML tag. The visual output is given here:

The bullet ...
Read now
Unlock full access