-
1. Re: execute javascript code after jsf action?
fmarwede Feb 12, 2008 5:19 AM (in response to ronaldj52)Are you sure?
In my opinion "oncomplete" is executed AFTER server side action. Please remember, these are ajax enabled components... -
2. Re: execute javascript code after jsf action?
ronaldj52 Feb 12, 2008 5:27 AM (in response to ronaldj52)yes, i tried it already :(
also from the documentation:
"oncomplete - JavaScript code for call after request completed on client side" -
3. Re: execute javascript code after jsf action?
ronaldj52 Feb 12, 2008 5:44 AM (in response to ronaldj52)ok, now i am not so sure if i am right;
what my javascript does is a redirect to a jsf page in the parent window, and now i seem to get the correct values in the parent window (yesterday i was sure that i sometimes got the old values sometimes, indicating that the javascript got executed sometimes before the acton had finished executing)
so, to sum up, i go for onComplete at the moment, and will see if i get any problems. would be nice though to be sure that actually always work :) -
4. Re: execute javascript code after jsf action?
juanignaciosl Feb 12, 2008 6:25 AM (in response to ronaldj52)I don't know if this will be useful for you, but I use oncomplete intensively in several applications and I have no problem with it.
-
5. Re: execute javascript code after jsf action?
ilya_shaikovsky Feb 12, 2008 8:28 AM (in response to ronaldj52)RonaldJ52,
seems we have not cleared explanation at "oncomplete - JavaScript code for call after request completed on client side"
oncomplete - called after ajax request completed and all updates on client finished.
So it's the attribute you need.