Hi all ,
I define some java script function which will call the back-end functions using a4j:jsFunction.For example :
<a4j:jsFunction name="function1" action="#{Bean1.action1}" oncomplete="function2();"/>
<a4j:jsFunction name="function2" action="#{Bean1.action2}" oncomplete="SomeJSFunc2();"/>
Then in the a4j:commandButton , I set the onclick property to call my defined function like it:
<a4j:commandButton onclick="function1" oncomplete="SomeJSFunc3();">
When the a4j:commandButton is clicked , #{Bean1.action1} is run .After the #{Bean1.action1} returned , the oncomplete event of the (a4j:jsFunction name="function1") cannot invoke the "#{Bean1.action2}" .How can I solve this problem?