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
Data Table Filtering
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
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
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">
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
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
In upcoming version, we'll expose this api so you can implement filters externally easier.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 55 guests