DataTable - Paginator DataTable provides a highly customizable ajax paginator.
IdYearBrandColor
011efa141998FordSilver
af6af8de1999VolvoWhite
6129bb951982FordGreen
eea399eb1961AudiSilver
f67645252002RenaultMaroon
206381db1999BMWBlack
305678641978VolvoMaroon
a279ca371968MercedesBrown
4063218d1960AudiBlue
f58beaa02007JaguarOrange
<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.