简体   繁体   English

如何使用jsf进行数据表过滤?

[英]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. 我想使用jsf在数据表中进行过滤。在数据表中,我必须过滤数据表中的值。

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. 有第一个下拉菜单,基于第二个下拉菜单,卓尔将使用value启用。基于数据表中显示的值。

Could you give me some sample ot ideas.Please.... 您能给我一些示例性想法吗?

I would recommend to you to use prepared components for JSF 我建议您为JSF使用准备好的组件

Try PrimeFaces . 尝试PrimeFaces

They have a table with an option to filter. 他们有一个带有过滤选项的表。

See a demo of database with the filter option here 在此处查看带有过滤器选项的数据库演示

Try AJAX. 试试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. 当第一个选择触发事件时,请使用AJAX回调服务,以使用所选值在数据库中查询第二个下拉值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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