DataTable - Paginator DataTable provides a highly customizable ajax paginator.
IdYearBrandColor
30639a0f1974AudiMaroon
69ef19ab1998MercedesBlue
4f58cc691977AudiYellow
866cbb701960VolkswagenBlack
d9aad1481982BMWBlack
84d6d7ba1975FiatSilver
be869e6c1997MercedesRed
9cd8191c1977BMWBrown
64f5cb271965AudiOrange
cda54b151979FiatSilver
<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>
    </p:dataTable>
</h:form>
                
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.2-SNAPSHOT on Mojarra-2.3.2.