- 
        1. Re: Problem using a4j:commandButton & a4j:includenbelaevski Feb 24, 2009 9:45 AM (in response to prakhar211)Hi, 
 Modal panel needs to have each own form (forms should not be nested in any case!) or domElementAttachment="form" (available since 3.3.0.GA).
- 
        2. Re: Problem using a4j:commandButton & a4j:includeprakhar211 Feb 24, 2009 9:54 AM (in response to prakhar211)Hi, 
 I have already tried by having <h:form> inside the <rich:modalPanel>
 .Still that problem exists.
- 
        3. Re: Problem using a4j:commandButton & a4j:includenbelaevski Feb 25, 2009 5:33 AM (in response to prakhar211)Does anything change if you use ui:include instead of a4j:include? 
- 
        4. Re: Problem using a4j:commandButton & a4j:includeprakhar211 Feb 25, 2009 10:21 AM (in response to prakhar211)No It does not make any change.I have tried with both Ui:include as well as a4j:include. I have tried many ways. 
- 
        5. Re: Problem using a4j:commandButton & a4j:includeprakhar211 Feb 25, 2009 10:22 AM (in response to prakhar211)"prakhar211" wrote: 
 No It does not make any change.I have tried with both Ui:include as well as a4j:include.
- 
        6. Re: Problem using a4j:commandButton & a4j:includenbelaevski Feb 25, 2009 1:07 PM (in response to prakhar211)Works for me perfectly with 3.3.0.GA: 
 Main page -<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:c="http://java.sun.com/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions"> <html> <body> <rich:modalPanel id="panelDoc" width="650" height="650"> <a4j:include viewId="forum2a.xhtml" /> </rich:modalPanel> <h:form> <a4j:commandLink value="open panel" oncomplete="Richfaces.showModalPanel('panelDoc');" /> </h:form> </body> </html> </ui:composition>
 Included page -<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <h:form> <h:selectOneRadio value="radio1" valueChangeListener="#{forum5Bean.processValueChange}"> <f:selectItem itemValue="radio1" itemLabel="radio1" /> <f:selectItem itemValue="radio2" itemLabel="radio2" /> <a4j:support event="onclick" ajaxSingle="true" limitToList="true" /> </h:selectOneRadio> </h:form> </ui:composition>
- 
        7. Re: Problem using a4j:commandButton & a4j:includeprakhar211 Feb 26, 2009 1:56 AM (in response to prakhar211)I am agree with you.This works absolutely fine even with 3.2.2SR1 but the problem comes when we use action attribute in <a4j:commandLink> than it stops working.You can check in my code i am calling action="includedPageAction.testMethod" in a4j:commandButton. 
- 
        8. Re: Problem using a4j:commandButton & a4j:includenbelaevski Feb 26, 2009 7:14 AM (in response to prakhar211)Please post action code. 
- 
        9. Re: Problem using a4j:commandButton & a4j:includeprakhar211 Feb 26, 2009 8:57 AM (in response to prakhar211)One more thing i want to make it clear. If we open the includedPage.xhtml (child page) in some other screen i.e not inside the modalPanel than it works absolutely fine. 
 action="#{includedPageAction.testMethod()}"
 In testMethod i am simply making call to two other methods where i am filling two lists & setting the navigation view.
- 
        10. Re: Problem using a4j:commandButton & a4j:includenbelaevski Feb 26, 2009 11:36 AM (in response to prakhar211)I've added "action" and nothing changed. Can you please prepare small test project demonstrating the issue? 
- 
        11. Re: Problem using a4j:commandButton & a4j:includeprakhar211 Mar 9, 2009 6:19 AM (in response to prakhar211)Thanks nbelaevski.... 
 As you asked for the action code than i tried looking into it & i found that setting navigation view was actually giving me problem so i removed that & it started working. :-)
 Thanks for your help.
- 
        12. Re: Problem using a4j:commandButton & a4j:includeprakhar211 Mar 9, 2009 6:22 AM (in response to prakhar211)apologise for replying you late.. 
 Thanks nbelaevski....
 As you asked for the action code than i tried looking into it & i found that setting navigation view was actually giving me problem so i removed that & it started working. :-)
 Thanks for your help.
 
    