validation - Validator for composite component validates, but also throws exception -
i want attach validator composite component, , want attached every child component inside:
<cc:interface> <cc:attribute name="validator" method-signature="void f(javax.faces.context.facescontext, javax.faces.component.uicomponent, java.lang.object)" targets="child1 child2"/> <cc:editablevalueholder name="child1"/> <cc:editablevalueholder name="child2"/> </cc:interface> <cc:implementation> <h:inputtext id="child1"/> <h:inputtext id="child2"/> </cc:implementation>
so on page have:
<xxx:mycomponent validator="#{bean.validationmethod}"/>
validation works expected, jsf throws message: ..../form.xhtml validator="#{bean.validationmethod}": class 'my.package.bean' not have property 'validationmethod'.
how can rid of message?
Comments
Post a Comment