在 wicket 中,如何从面板内 ajax 组件的 onSubmit 刷新反馈面板?
我的页面顶部有一个反馈面板。
我有许多面板,每个面板都有带有 AjaxFallback 链接的子面板,单击这些链接时我想设置要在反馈面板中显示的 info() 消息。
我是否必须将反馈面板向下传递到面板层,以便在单击链接时可以将其重新添加到 Ajax 目标?或者还有别的办法吗?
谢谢,汤姆
I have a feedback panel at the top of my page.
I have a number of panels, each have sub panels with AjaxFallback links that, when clicked I want to set info() messages to be displayed in the feedback panel.
Do I have to pass my feedback panel down through the layers of panels in order that I can re-add it to the Ajax target when the link is clicked? Or is there another way?
Thanks, Tom
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Wicket 6 中的以下作品
The following works in Wicket 6
有些东西必须将其添加到目标中,但是有一些方法可以使用间接,这样就不需要传递太多东西。请参阅这篇博客文章 一种策略。
Wicket 1.5 中添加了类似的内容。有关此添加的错误跟踪,请参阅 WICKET-1312。
Something has to add it to the target, but there are ways of using indirection so that things don't need to be passed around as much. See this blog article for one tactic.
Something similar is being added in Wicket 1.5. See WICKET-1312 for bug-tracking about this addition.