I want to create composite component and attach some validators to it's children, but I want message from validation to be attached to composite component, not to it's child.
In the page using the composite component I want something like this:
<zzz:mycomponent id="my" />
<h:message for="my" />
Now it doesn't work, because message is for component's child, not composite component itself. How to make it for whole component?
Or even better, I would like to add validator to composite component, like:
<zzz:mycomponent id="my" validator="#{bean.validateComposite}" />
And receiver something like booleans array as value, because inside composite component there are h:selectBooleanCheckbox
elements. Is that possible?