Wicket 的 MultiAutoCompleteTextField
我需要一个用于 Wicket 的 AutoCompleteTextField ,它可以处理由逗号分隔的多个自动完成项目。
像这样的东西: http://digitarald.de/project/autocompleter/ 1-1/展示/美味标签/
I need an AutoCompleteTextField
for Wicket which can handle several autocomplete items separated by a comma.
Something like this: http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Wicket-extensions 提供自动完成功能。
添加
以同样的方式将 AutoCompleteBehavior
添加到TextArea
AutoCompleteTextField
使用它。例如:
如果您使用 Maven,只需添加以下依赖项即可开始使用 wicket-extensions:
编辑
看到问题是关于多自动完成文本字段,就像这个示例中的那样,您可能会发现以下链接很有用:Wicket 自动完成文本字段。其中有几个组件似乎可以满足您的需要。
您还可能会找到此讨论和<一href="http://apache-wicket.1842946.n4.nabble.com/Auto-Complete-TextField-for-selecting-multiple-values-td1876107.html" rel="nofollow">这个 Apache Wicket 用户列表很有用。您会在那里找到几个似乎也包含此组件的项目链接:interwicket和 WicketHub
Wicket-extensions provides autocomplete features.
Add an
AutoCompleteBehavior
to theTextArea
in the same fashionAutoCompleteTextField
uses it.For instance:
If you are using Maven, just add the following dependency to start using wicket-extensions:
EDIT
Seeing that the question is about Multi autocomplete textfields, like the one in this example, you might find the following link useful: Wicket auto-complete text fields. There are a couple of components in there that seem to do just what you need.
You might also find this discussion and this one in the Apache Wicket User list useful. You'll find a couple of links there to projects that seem to also have this component: interwicket and WicketHub
另请参阅 https://github.com/wicketstuff /core/tree/master/jdk-1.5-parent/autocomplete-tagit-parent
Also see https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/autocomplete-tagit-parent
我可以通过 Ajax 在 wicket 中解决该问题,如下所示
I could resolve the problem by Ajax in wicket as the following