0 Replies Latest reply on Apr 15, 2010 12:48 PM by mgbowman

    a4j:form + s:decorate

      I'm having a problem using a4j:form with s:decorate.


      This works - after an empty submission, #{invalid} is true


      <h:form>
          <s:validateAll>
              <s:decorate>
                  <p>Invalid: #{invalid}</p>
                  <h:inputText value="#{sessionBean.test}" required="true" />
              </s:decorate>
          </s:validateAll>
          <h:commandButton value="Submit" />
      </h:form>



      This does not work - after an empty submission, #{invalid} is false


      <a4j:form ajaxSubmit="true">
          <s:validateAll>
              <s:decorate>
                  <p>Invalid: #{invalid}</p>
                  <h:inputText value="#{sessionBean.test}" required="true" />
              </s:decorate>
          </s:validateAll>
          <h:commandButton value="Submit" />
      </a4j:form>



      Any ideas?


      Thanks in advance!


      --mgbowman