- 
        1. Re: RF 4.5.14 action always submits page, hence oncomplete not invokeddhamma4u Apr 29, 2016 2:00 AM (in response to kamlesh.dalwadi)Hi, Same problem here.!! 
- 
        2. Re: RF 4.5.14 action always submits page, hence oncomplete not invokedkamlesh.dalwadi May 2, 2016 3:12 AM (in response to kamlesh.dalwadi)Any updates michpetrov, ilya_shaikovsky ? Putting it in <h:form> and <a4j:region> also did not work. The "action" anyhow submits the whole page. 
- 
        3. Re: RF 4.5.14 action always submits page, hence oncomplete not invokedmichpetrov May 2, 2016 4:06 AM (in response to kamlesh.dalwadi)Any errors? CommandButton is set to do an ajax request when it's clicked (and prevent default action), if it's submitting the whole page I assume there's a problem with resources. 
- 
        4. Re: RF 4.5.14 action always submits page, hence oncomplete not invokeddhamma4u May 3, 2016 3:18 AM (in response to michpetrov)Thank you for your response michpetrov. It is not giving any error. I am trying to resolve. Here are my resources I am using. richfaces-a4j-4.5.14.Final.jar richfaces-core-4.5.14.Final.jar richfaces-page-fragments-4.5.14.Final.jar richfaces-rich-4.5.14.Final.jar Server APIs: jboss-jsf-api_2.1_spec-2.1.28.Final-redhat-1.jar jsf-impl-2.1.28.redhat-3.jar Can you please suggest what could be wrong? 
- 
        5. Re: RF 4.5.14 action always submits page, hence oncomplete not invokedmichpetrov May 3, 2016 3:50 AM (in response to dhamma4u)I meant resources on the page (mainly JavaScript), have you checked the browser console? 
- 
        6. Re: RF 4.5.14 action always submits page, hence oncomplete not invokedkamlesh.dalwadi May 3, 2016 4:16 AM (in response to michpetrov)Hi michpetrov, I am using same resources as dhamma4u using. I am using JBOSS-EAP-6.3. Any suggestions would be grateful. 
- 
        7. Re: RF 4.5.14 action always submits page, hence oncomplete not invokedkamlesh.dalwadi May 3, 2016 5:33 AM (in response to michpetrov)My main page loads lot many .js files including various versions of JQuery and LAB.js. I am checking removing them one by one. Thanks for your time michpetrov. I will update you the results. 
- 
        8. Re: RF 4.5.14 action always submits page, hence oncomplete not invokedkamlesh.dalwadi May 3, 2016 6:34 AM (in response to michpetrov)Hi michpetrov, I have tried creating a new project. Attaching the .war for your reference. Still the problem persists. Appreciating your time. Thanks Kamlesh - 
            
                            
            TestOnComplete.war.zip 9.5 MB
 
- 
            
                            
            
- 
        9. Re: RF 4.5.14 action always submits page, hence oncomplete not invokedmichpetrov May 3, 2016 7:45 AM (in response to kamlesh.dalwadi)1 of 1 people found this helpfulYou are missing h:head, it is necessary in JSF 2 for managing resources. Without that, the page loads no resources (the rendered <head> is empty), you should also have seen something like - Uncaught ReferenceError: RichFaces is not defined 
- 
        10. Re: RF 4.5.14 action always submits page, hence oncomplete not invokeddhamma4u May 3, 2016 9:41 AM (in response to michpetrov)Hi, Thanks michpetrov it worked fine. Actual issue was with faces-config.xml file navigation rule as we were redirecting to the same page, so each request the page was getting reloaded due to phase listener and faces-config navigation rule. now we removed that navigation rule and all attribute of the <a4j: working fine. Thanks for your quick guidance.! 
- 
        12. Re: RF 4.5.14 action always submits page, hence oncomplete not invokedkamlesh.dalwadi May 4, 2016 3:15 AM (in response to dhamma4u)Thanks michpetrov, dhamma4u, I have corrected my navigation rule in faces-config.xml and it worked. I was redirecting my page to itself every time. Here is my wrong code: <navigation-rule> <from-view-id>/main.xhtml</from-view-id> <navigation-case> <if>#{identity.isLoggedin()}</if> <to-view-id>/main.xhtml</to-view-id> <redirect /> </navigation-case> <navigation-case> <if>#{!identity.isLoggedin()}</if> <to-view-id>/login.xhtml</to-view-id> <redirect /> </navigation-case> </navigation-rule> Corrected Code: <navigation-rule> <from-view-id>/login.xhtml</from-view-id> <navigation-case> <if>#{!identity.isLoggedin()}</if> <to-view-id>/login.xhtml</to-view-id> <redirect /> </navigation-case> <navigation-case> <if>#{identity.isLoggedin()}</if> <to-view-id>/main.xhtml</to-view-id> <redirect /> </navigation-case> </navigation-rule> Michal your suggestions were also useful. Thanks everyone for your time. 
 
     
    