JSF 2: view-scoped bean created one time per h:form?

浪子不回头ぞ 提交于 2019-12-25 04:16:10

问题


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


回答1:


That is nonsense. OP's problem is caused by something else which has been reported as issue 2215.



来源:https://stackoverflow.com/questions/7866121/jsf-2-view-scoped-bean-created-one-time-per-hform

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!