Composite component required attribute throws exception in Mojarra 2.0.3

前端 未结 3 463
日久生厌
日久生厌 2021-01-13 12:03

I\'ve been playing around with JSF 2.0 composite components but I\'m a bit confused as to what the require attribute in the composite:attribute tag is meant to

3条回答
  •  半阙折子戏
    2021-01-13 12:38

    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)

提交回复
热议问题