Composite component required attribute throws exception in Mojarra 2.0.3

三世轮回 提交于 2019-12-01 07:36:50

We have simular issues with required="true" in combination with @ViewScoped bean.

I our case the bean no longer behaves like a @ViewScoped bean (new constructor call every time).

Your problem might be that because the bean looses its scope the variabels are null again?

Either case the only awnser I can give you is to not use required="true" or use a @SessionScoped bean.

(Possibly this relates to the problem of Mojarra not being able to handle bindings to properties in @ViewScoped beans)

I don't know if it is a bug, but it is the nature of el-expressions. Default expression type is String and empty string translated as null.

This seems to have been this issue, which seems to have been closed a while ago, although I cannot seem to find in which version it was included.

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