0 Replies Latest reply on Feb 14, 2013 5:10 PM by Hai-Yun Du

    Get invalid parameter / attribute in jsf composite

    Hai-Yun Du Newbie

      Given the following:



           <composite:attribute name="value" type="java.lang.String" />




           <s:div id="input" styleClass="#{invalid? 'error' : ''}">


                     <h:inputText value="#{cc.attrs.value}" />

                     <a4j:commandButton value="Save" action="#{cc.attrs.action}" render="input" />





      Is there some built-in 'invalid' parameter that tells you whether it passed validation? I'm using  jsf 2, seam 2.3, and richfaces 4.2


      In older Seam, you could use  s:decorate templating to get to the built-in 'invalid' param.