I want to customize PrimeFace's data table pagination.
It is currently showing the page count at the bottom as: (1 of 5)
. I want to display the # of records in one page out of total number of records, such as: (1-10 of 50)
.
I have included my code below - but it isn't working. Could anyone please assist?
<p:dataTable id="tblStatusSearch" var="item" rowIndexVar="rowStatusSearch"
rows="10" paginator="true"
paginatorTemplate="{CurrentPageReport}
{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} "
value="#{StatusAction.listEBeans}"
<f:facet name="footer">
<h:outputText value="#{rowStatusSearch + 1} - 10 out of #{bondLocationStatusAction.itemCount}"/>
</f:facet>