DataTable - Paginator

DataTable provides a highly customizable ajax paginator.

IdYearBrandColor
6c396ac92009HondaRed
439c4f012005AudiBlue
c43d33b61978JaguarMaroon
a47fc6151992RenaultMaroon
81c238a21973HondaSilver
872c422c1981VolvoBlue
ceddf0a72006FordBrown
8fe621f12001BMWYellow
c5b59fa01996RenaultBlue
03a923b01971AudiBlack
<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>