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

    a4j:form + s:decorate

    Matthew Bowman Newbie

      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