在回发的 PreRenderView 事件期间将新组件添加到组件树
是否可以在回发的 PreRenderView 事件期间创建新的 UIComponent 并将其添加到组件树中?如果是这样,我该如何在 Seam 3 中使用 public void onPreRenderEvent(@Observes PreRenderViewEvent e)
来实现呢?
Is it possible to create new UIComponent
s and add it to component tree during the PreRenderView
event of a postback? If so, how can I do it using public void onPreRenderEvent(@Observes PreRenderViewEvent e)
in Seam 3?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。我一直在与 Mojarra 团队和 MyFaces 团队合作,建立“公认”的执行此操作的方式。我已将他们的结论写在博客中:
http://blog。 kennardconsulting.com/2010/10/safely-manipulated-component-tree-with.html
JSF EG 也在考虑在其规范中对此进行形式化:
http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1007
Yes. I have been working with both the Mojarra team and the MyFaces team to establish the 'accepted' way of doing this. I have blogged their conclusions here:
http://blog.kennardconsulting.com/2010/10/safely-manipulating-component-tree-with.html
The JSF EG are also looking at formalizing this in their spec:
http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1007