开发者

Problem with @ViewScope and the @PostConstruct [duplicate]

This question already has an answer here: @ViewScoped calls @PostConstruct on every postback request (1 answer) Closed 6 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜