DataTable - Paginator DataTable provides a highly customizable ajax paginator.
IdYearBrandColor
e22ab1f71995RenaultYellow
7067ea7e1985MercedesBlack
776ee73a2005MercedesWhite
7b289d991974VolkswagenMaroon
7db767071996JaguarOrange
d25ab08d1978FiatMaroon
5b19c7b81990RenaultBlack
eb491c312002VolvoOrange
8b6c75721988FiatBrown
c34425a51966VolkswagenBlue
<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.0.16 on Mojarra-2.2.8.