Primefaces--给SelectOneListBox添加过滤器

标签 primefaces filter

我想知道是否可以向 primefaces 中的 selectOneListbox 添加过滤器(例如开始于)?

谢谢。

最佳答案

Primefaces showcase 中没有显示过滤器, 既不在 documentation ,所以我猜不会。

但是您可以添加自己的过滤器。遗憾的是,selectOneListbox 没有可用的客户端 API,因此您必须在后端进行过滤。只需在 selectOneListbox 上放置一个简单的 inputType,每次输入符号时,您都可以使用过滤后的值更新 selectOneListbox。但这会花费服务器时间,我不知道那是您想要的。

关于Primefaces--给SelectOneListBox添加过滤器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18182051/

相关文章:

java - 生成与双引号字符串完全匹配的过滤器机制,并包含与单引号类似的功能

css - 双色调 SVG 过滤器在 Firefox 中不起作用

scala - 我可以在 where 或过滤器中有条件吗?

css - p :layout and p:layoutUnit ignore the style

jsf-2 - 将鼠标悬停在标题列数据表上时显示工具提示

c++ - 窗口 : load a filter driver while windows is running

arrays - 使用复选框和 AngularJS 过滤 ng-repeat 列表

java - PrimeFaces 3.0 - <p :tree> node selection when tree is in a <p:dialog> 中的异常

java - 从支持 bean 导航到外部 URL?

jsf - java.lang.NoClassDefFoundError : org/atmosphere/cpr/AsyncSupportListenerAdapter 错误