When using datatable with lazy and paginator options, i am trying to show the total rowcount to user but this value is not updated after filtering for example. For example the paginatorTemplate allows to know total number of pages but I don't see an attribute allowing to know the rowCount updated after filtering.
Here is my code
The variable totalResultNumber is not updated when filtering. Is there a way to update it after the filter ajax request?<p:dataTable id="myTable" var="user" value="#{userSearchBean.userModel}"
lazy="true" paginator="true" rows="3" emptyMessage="Pas de données"
paginatorTemplate="{FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="3,5,10"
>
<f:facet name="header">
Liste des utilisateurs
</f:facet>
<p:column sortBy="#{user.name}" filterBy="#{user.name}" >
<f:facet name="header">
Nom
</f:facet>
<h:outputText value="#{user.name}"/>
</p:column>
</p:dataTable>
<h:outputLabel id="totalNumber" value="#{userSearchBean.totalResultNumber}"/>
Thanks for your answer