12 Replies Latest reply on Mar 9, 2009 6:22 AM by Prakhar Paharia

    Problem using a4j:commandButton & a4j:include

    Prakhar Paharia Newbie

      First Page:Parent.xhtml(Parent Page): It contains

      <a4j:commandButton id="a4jTestButton" action="#{includedPageAction.testMethod()}" oncomplete="Richfaces.show("showModalPanel")">

      <rich:modalPanel id="showModalPanel">
      <a4j:include viewId="/includedPage.xhtml">
      </rich:modalPanel>

      When we press a4j:commandButton it makes call to testMethod of includedPageAction & than shows the modalPanel.Till this point it works correctly.Now we will see includedPage.xhtml inside modalPanel

      Second page: includedPage.xhtml(Child Page)
      <h:selectOneRadio value="radio1" valueChangeListener="#{includedPageAction.clickRadio}">
      <f:selectItem itemValue="radio1" itemLabel="radio1">
      <f:selectItem itemValue="radio2" itemLabel="radio2">
      <a4j:support event="onclick" ajaxSingle="true" reRender="table" limittolist="true"/>
      </h:selectOneRadio>

      Now when we change the radio button call does not go to server i.e it is not making call to clickRadio method of includedPageAction.java.

      On click of any buttons & links available in includedPage.xhtml, the call does not go to server.