DataTable - Paginator

DataTable provides a highly customizable ajax paginator.

IdYearBrandColor
470ed2f11992BMWBrown
68c147d61969VolvoWhite
fc27daa81997FordRed
2af70a272008FordYellow
5b495deb1971RenaultWhite
c52398e21963JaguarBlue
acde0e361985BMWBrown
cfa70fcb1994VolkswagenMaroon
665c3db51998RenaultBlue
bbf6d18b1975FiatGreen
<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="fa fa-sync" />
        </f:facet>

        <f:facet name="paginatorBottomRight">
            <p:commandButton type="button" icon="fa fa-cloud-upload" />
        </f:facet>
    </p:dataTable>
</h:form>