JSF View Scoped Bean Reconstructed Multiple Times [duplicate]

谁都会走 提交于 2019-11-28 11:45:51

Unless you're using JSF 2.2 (which is still not out yet at this moment) or MyFaces CODI (which I'd have expected that you would explicitly mention that), the @ViewScoped doesn't work in CDI. This also pretty much matches your problem symptoms.

Manage the bean by JSF instead of CDI. Replace @Named("domainEdit") by @ManagedBean from javax.faces.bean package. Or, install MyFaces CODI to bridge JSF @ViewScoped to CDI.

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