问题
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