JSF 2:每个 h:form 创建一次视图范围 bean?
我在这里指的是一个答案:
我没有正确读取视图范围。每页只能有一个表格。如果您有多个表单,则该 Bean 将被创建多次。
我无法证实这一点。有人可以否认吗? (如果上面的引用确实适用,那么适当的参考资料在哪里?)
谢谢
I'm referring to an answer here:
Why can't I get ViewScope to work? Throws errors every time
I didn't read view scope properly. You can only have one form per page. The bean is created multiple times if you have more than one form.
I can't confirm this. Can anybody please deny it? (if the quote above does apply, where's the appropriate reference for this?)
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
那是无稽之谈。 OP 的问题是由其他问题引起的,已报告为 问题 2215。
That is nonsense. OP's problem is caused by something else which has been reported as issue 2215.