DataTable - Paginator

DataTable provides a highly customizable ajax paginator.

IdYearBrandColor
97cba4a61985VolkswagenOrange
efc9ff9a2005AudiSilver
eaba04e01965FordBrown
d6f2f0711972VolkswagenSilver
251dc8141996MercedesWhite
f370c7d01963VolkswagenGreen
32233f0a1999AudiYellow
cf8a6a061991HondaBlue
bb47cf6d1974JaguarBlue
c56e3ffe1965VolvoMaroon
<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>