2 Replies Latest reply on Oct 3, 2007 7:30 AM by Pete Muir

    s:validateAll and invalid facet only rendered on last invali

    Nicklas Karlsson Master

      Have I misunderstood something or shouldn't the following code produce an "!" after both fields after clicking the button?

      <h:form>
       <f:facet name="afterInvalidField">
       <ice:outputText value="!" />
       </f:facet>
       <s:validateAll>
       <s:decorate>
       <h:inputText value="# identity.username}" required="true"/>
       </s:decorate>
       <s:decorate>
       <h:inputText value="#{identity.password}" required="true"/>
       </s:decorate>
       <h:commandButton value="login" action="#{identity.login}"/>
       </s:validateAll>
      </h:form>
      


      Now it is only drawn after the last invalid field? (2.0.0CR1)