1 Reply Latest reply on Apr 15, 2010 8:09 AM by Nick Belaevski

    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