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
seperate filter panel for primefaces datatable
-
- Posts: 12
- Joined: 03 Nov 2011, 10:02
You mean filtering like in http://www.primefaces.org/showcase-labs ... tering.jsf ?
PrimeFaces 3.0M4, MyFaces 2.1, Tomcat7
-
- Posts: 25
- Joined: 12 Jul 2010, 18:21
no, i need to something like this:
i want to when user enter values into outpanel's textfields and then hit search button, the datatable be filered accordingly.
thanks
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>
thanks
-
- Information
-
Who is online
Users browsing this forum: No registered users and 46 guests