7 Replies Latest reply on Feb 21, 2007 12:18 PM by lowecg2004

    <s:validate/>,  <s:decorate> and Trinidad

    lowecg2004

      I'm trying to use Seam validation with Trinidad inputText. I'd read the following topic, so I'm avoiding using <s:validateAll />

      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=93038

      However, when I use <s:validate />, I get the right error messages but <s:decorate> is ignored:

      <s:decorate>
       <f:facet name="beforeInvalidField">**</f:facet>
       <f:facet name="afterInvalidField">@@</f:facet>
       <f:facet name="aroundInvalidField"><s:span styleClass="error"/></f:facet>
      
       <tr:inputText id="you" name="you" value="#{orderQuantity.quantity}" simple="true" required="true" requiredMessageDetail="Please enter a quantity">
       <s:validate />
       </tr:inputText>
       </s:decorate>


      Have I done something wrong, or is this similar to <s:validateAll/> in that some of the Trinidad component types do not inherit from UIInput and <s:decorate> relies on that?

      Cheers,

      Chris.