seperate filter panel for primefaces datatable

UI Components for JSF
Post Reply
arashbahal
Posts: 25
Joined: 12 Jul 2010, 18:21

07 Nov 2011, 10:34

hi all.
i want to have a separate filter (search) panel for datatable filtering (not on the header of each column).
when user clicks search button on the search panel, the datatable must be filtered accordingly.
i am looking for a working example code.
how could i achieve this by primefaces?
thanks in advance

Raubvogel87
Posts: 12
Joined: 03 Nov 2011, 10:02

07 Nov 2011, 10:49

PrimeFaces 3.0M4, MyFaces 2.1, Tomcat7

arashbahal
Posts: 25
Joined: 12 Jul 2010, 18:21

07 Nov 2011, 10:59

no, i need to something like this:

Code: Select all

<p:outputpanel >
name:
<h:inputtext value="something"/>
family:
<h:inputtext value="something"/>
<p:commandbutton update="datatable" value="search"/>
</p:outputpanel >
<p:datatable value="..." var="row" id="datatable"/>
<p:column >
<h:outputtext value="#{row.name}"/>
</P:column/>
<p:column >
<h:outputtext value="#{row.family}"/>
</P:column/>
</p:datatable>
i want to when user enter values into outpanel's textfields and then hit search button, the datatable be filered accordingly.
thanks

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests