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

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

    Chris Lowe Apprentice

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


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

       <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 />

      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?