1 Reply Latest reply on Nov 2, 2008 2:49 PM by nbelaevski

    reRender doesn't work with immediate=true

      Hi! I want to implement a simple cancel button. To skip the validation I added immediate="true" to the a4j:commandButton. The reset action will be invoked by the cancel button (I checked that with log) but the form will not get reRendered!

      Example:

      <h:form id="testForm">
      <s:decorate template="/include/formFieldDecorate.xhtml">
       <ui:define name="label">Duration</ui:define>
       <h:inputText id="duration" size="5" value="#{testHome.instance.duration}" required="true" />
      </s:decorate>
      <s:div>
       <a4j:commandButton value="Save" action="#{testHome.persist}" reRender="testForm" />
       <a4j:commandButton value="Cancel" action="#{testHome.reset}" reRender="testForm" immediate="true" />
      </s:div>
      </h:form>
      


      Does immediate="true" and reRender not work together? ajaxSingle="true" instead of immediate="true" will not work for me, because the #{invalid} within <s:decorate> will not be reset. Am I missing something? Is something wromng with my code?