0 Replies Latest reply on Feb 14, 2013 5:10 PM by hdu

    Get invalid parameter / attribute in jsf composite

    hdu

      Given the following:

       

      <composite:interface>

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

      </composite:interface>

       

      <composite:implementation>

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

                <s:validateAll>

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

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

                </s:validateAll>

           </s:div>

      </composition:implementation>

       

      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.

       

      Thanks!