DataTable - Paginator DataTable provides a highly customizable ajax paginator.
IdYearBrandColor
7b11793e2009HondaGreen
a7df54901982FiatWhite
7a4e3c7a1980BMWBrown
37f88e402006HondaMaroon
c560906b1973FordSilver
e702c6e91974VolvoBlack
da086dac2008JaguarWhite
564a77891979VolvoOrange
6e9b40791963FordOrange
a63361891999AudiYellow
<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.