DataTable - Paginator

DataTable provides a highly customizable ajax paginator.

IdYearBrandColor
29fe023f2002VolvoSilver
cb73a5981967FiatYellow
9119f04e1999JaguarBlue
5e306f511988RenaultBlack
a4d0c5311964AudiGreen
8d3089142009BMWBrown
0b4e61421993RenaultRed
09369d0a1999RenaultWhite
2614ddc01981VolkswagenMaroon
8db43bf41984MercedesWhite
<h:form>
    <p:dataTable var="car" value="#{dtPaginatorView.cars}" rows="10" 
                 paginator="true"
                 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                 rowsPerPageTemplate="5,10,15">
        <p:column headerText="Id">
            <h:outputText value="#{car.id}" />
        </p:column>

        <p:column headerText="Year">
            <h:outputText value="#{car.year}" />
        </p:column>

        <p:column headerText="Brand">
            <h:outputText value="#{car.brand}" />
        </p:column>

        <p:column headerText="Color">
            <h:outputText value="#{car.color}" />
        </p:column>

        <f:facet name="paginatorTopLeft">
            <p:commandButton type="button" icon="pi pi-refresh" />
        </f:facet>

        <f:facet name="paginatorBottomRight">
            <p:commandButton type="button" icon="pi pi-cloud-upload" />
        </f:facet>

    </p:dataTable>
</h:form>