Problem with @ViewScope and the @PostConstruct [duplicate]
My MBean is @ViewScope and the @PostConstruct is called when new instance is created and when made 开发者_JS百科ajax request. this should happen?
This behavior is a bug in JSF that will be fixed only in the (upcoming) version 2.2 of mojarra.
See the detailed answer here: stackoverflow.com/questions/8804317/...
@ViewScope
beans have problems with some tags. for example:
<ui:include/>
<ui:composition/>
<c:forEach/>
If your page has these tags, you may have a problem.
精彩评论