I want to create a composite component and attach some validators to it, but I want the verification message to be attached to the composite component, and not to it.
On a page using a composite component, I want something like this:
<zzz:mycomponent id="my" /> <h:message for="my" />
Now this does not work, because the message is intended for a child component, and not for a composite component. How to do this for the whole component?
Or even better, I would like to add a validator to the composite component, for example:
<zzz:mycomponent id="my" validator="#{bean.validateComposite}" />
And get something like a booleans array as a value, because there are h:selectBooleanCheckbox elements inside the composite component. Is it possible?
source share