Mirage LIVE PREVIEW

DataTable - Paginator

DataTable provides a highly customizable ajax paginator.

Documentation
IdYearBrandColor
7e9d22e81983VolvoMaroon
9e10a9981983AudiBlue
41cd8fd81964FiatOrange
b704dea71984BMWBlue
95ba3f101980FordOrange
32ec60762008VolvoYellow
c06281641966VolvoRed
524e425f1988FiatRed
7be6919e1985BMWSilver
9925fa861967JaguarGreen
<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>