DataTable - Paginator DataTable provides a highly customizable ajax paginator.
IdYearBrandColor
6a5bf6b01972AudiMaroon
8e4c17842004AudiBrown
0734cc211961MercedesRed
38baa7481975VolvoRed
284763ac1976VolkswagenRed
8e83ddf01963AudiBlue
76ccbb0d1995VolvoBlack
3d47b3961992JaguarMaroon
515f21b21965VolkswagenGreen
2c9d21392003JaguarRed
<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 © 2015
All rights reserved.
Running PrimeFaces-6.1-SNAPSHOT on Mojarra-2.2.8.