1 Reply Latest reply on May 29, 2008 1:52 AM by kingkii

    a4j:include doesn't in separate pages

    kingkii

      hi, I find a problem with a4j:include. It works well in general. However, if I put it in a separate page, it doen't work. For example:
      page1.jsp:
      ...
      <h:form>
      <a4j:include id="steps" viewId="#{wizard.step}"/>
      <a4j:commandButton action="#{wizard.next}" value="Next" reRender="steps"/>
      </h:form>

      It works well. But if I change it as this:
      page1.jsp:
      ...
      <jsp:include page="page2.jsp"/>
      ...

      page2.jsp:
      ...
      <h:form>
      <a4j:include id="steps" viewId="#{wizard.step}"/>
      <a4j:commandButton action="#{wizard.next}" value="Next" reRender="steps"/>
      </h:form>

      Then, the wizard cannot be changed to the next step even if I pressed the next button.
      Who can help me? thanks.