Rose
Rose

Reputation: 1

how to do datatable filter using jsf?

I want to do the filter in data table using jsf.In the datatable i have to filter the values what ever in the datatable.

There is first dropdown and based on the drop down second drop drow will enable with value.Based on the that values display in the datatable.

Could you give me some sample ot ideas.Please....

Upvotes: 0

Views: 2249

Answers (2)

Dejell
Dejell

Reputation: 14317

I would recommend to you to use prepared components for JSF

Try PrimeFaces.

They have a table with an option to filter.

See a demo of database with the filter option here

Upvotes: 2

duffymo
duffymo

Reputation: 308848

Try AJAX. When the first selection fires off an event, make an AJAX call back to a service to query the database for the second drop down values using the selected value.

Upvotes: 1

Related Questions