Data Table Filtering

UI Components for JSF
Post Reply
chinua
Posts: 6
Joined: 15 Mar 2010, 23:46

01 Apr 2010, 16:33

Hi,

I am enjoying primefaces. Good Job!

However, there is a an issue I need help to figure out.
I have a datatable that displays search results. The table also has the primefaces filter.
After a search I have a list of facets(some keywords that are in the result) as links.
I want to be able to filter the datatable when a user clicks on the links.
This is already been done when a user types into the filter boxes but I also want to filter when a user clicks on a keyword link.

Thanks.

CHINUA

chinua
Posts: 6
Joined: 15 Mar 2010, 23:46

02 Apr 2010, 17:09

I have made some progress on this issue.

I found out that there is a javascript call which primefaces uses to filter the dataTable.
In my case this is the code

Code: Select all

 <input id="results:j_idt38_filter" onkeyup="results_widget.filter(this.value,'j_idt38')" name="results:j_idt38_filter">
They pass the input text and the name of the control.

I need some help to be able to call the function. I need to be able to pick the name of the filter controls dynamically and give it some text to filter on.

Thanks

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

05 Apr 2010, 01:48

In upcoming version, we'll expose this api so you can implement filters externally easier.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 55 guests