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
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.
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)
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.