Calling another a4j:jsFunction in an a4j:jsFunction oncomplete event
Posted
by user339637
on Stack Overflow
See other posts from Stack Overflow
or by user339637
Published on 2010-05-24T10:38:26Z
Indexed on
2010/05/24
10:41 UTC
Read the original article
Hit count: 586
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?
© Stack Overflow or respective owner