DataTable - Paginator

DataTable provides a highly customizable ajax paginator.

IdYearBrandColor
055e776e1993FordWhite
bc15497f2009HondaBlue
fa06cc742005VolvoOrange
4e4fa0891964MercedesBlack
7ccf53991987RenaultSilver
14809f8e1974VolkswagenBlue
c51f1e3b1984FiatBlack
0b4b686c1991VolvoBlack
0ca087de2009RenaultSilver
e1ae1dc32004JaguarMaroon
<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>

        <f:facet name="paginatorTopLeft">
            <p:commandButton type="button" icon="pi pi-refresh" />
        </f:facet>

        <f:facet name="paginatorBottomRight">
            <p:commandButton type="button" icon="pi pi-cloud-upload" />
        </f:facet>

    </p:dataTable>
</h:form>