Row count in filtered DataTable

UI Components for JSF
Post Reply
chinchilla
Posts: 26
Joined: 01 Apr 2011, 14:21
Location: Munich, DE

01 Apr 2011, 14:30

How can I get the number of results after filtering in a paged DataTable in PrimeFaces?

Code: Select all

<p:dataTable id="tbl" var="x" value="#{dbBean.xSorted}" paginator="true" rows="20">
    <p:column sortBy="#{x.id}" filterBy="#{x.id}" filterMatchMode="exact">
        <f:facet name="header">
            <h:outputText value="ID" />
        </f:facet>
        <h:outputText value="#{x.id}" />
    </p:column>
</p:dataTable>
The table has ~20 columns which can be sorted and filtered.
PrimeFaces 3.0, GlassFish 3.0.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 35 guests