DataTable - Paginator DataTable provides a highly customizable ajax paginator.
IdYearBrandColor
c0bc21df1987VolkswagenBrown
a07a3c7b1965VolkswagenRed
b46d9a821973VolkswagenOrange
5814b8ff1973AudiYellow
c2367e9d1980RenaultRed
65b24b041990FordSilver
a58fea042005FordOrange
4b8f2dcf1975HondaGreen
53fac6761973BMWOrange
d3ec08901977BMWRed
<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.1.4 on Mojarra-2.2.10.