当没有匹配项时隐藏icefaces自动完成列表
朋友们!
我使用icefacesice:selectInputText项目来表示带有自动完成提示列表的输入框。支持 bean 返回合适提示的列表(它从一个大列表中选择提示,条件是它们包含用户已在输入框中输入的字符)。
一切正常。唯一的问题是,当根本没有匹配项时,我试图返回空列表(我也尝试返回 null) - 我希望提示列表将被隐藏。但当返回的提示数超过 0 时,列表仍保持上次创建的状态。
如果可以消除这种不良行为,请告诉我在哪里可以找到有关如何实现这一目标的信息。
提前致谢, 罗迪恩
Friends!
I use icefaces ice:selectInputText item to represent input box with autocomplete hints list. Backing bean is returning list of suitable hints (it selects hints from one big list on condition that they contains characters already entered by user into input box).
All works fine. The only problem is that when there are no matches at all, I am trying to return empty list (also I've tried to return null instead) - I hope that list of hints would be hidden. But the list remains in the state which was created last time when there were more than 0 hints returned.
If it is possible to get rid of this undesirable behavior, could you please tell me where I can find info on how to achieve this.
thanks in advance,
Rodion
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们在项目中也遇到了这个问题。 ICEfaces 中存在一个错误,导致项目列表变空时视图不会更新。 ICEfaces 论坛对此进行了报道: http://www.icefaces.org/JForum/ posts/list/16406.page
修复方法是按照上面论坛帖子中的建议修补icefaces-comps.jar 包。
We came across this issue as well in our project. There is a bug in ICEfaces that causes the view not to update when the item list becomes empty. This was reported in ICEfaces fora: http://www.icefaces.org/JForum/posts/list/16406.page
The fix is to patch the icefaces-comps.jar package as proposed in the forum post above.