简体   繁体   中英

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....

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM