How to call Javscript after AJAX update, Wicket
Published: April 17, 2009 , Updated: May 25, 2011 , Author: mkyong
Problem
According to this this Wicket article. If we want to run a certain piece of Javascript code after every Ajax update, we can uses “wicketGlobalPostCallHandler” like this :
wicketGlobalPostCallHandler = function { alert('successful partial update'); }
However, the solution just doesn’t work for me.
Solution
Alternatively, you can uses “ajaxRequestTarget” to append the Javascrip code :
ajaxRequestTarget.appendJavascript("alert('hello');");
Any Java questions or problems? please post at this JavaNullPointer.com forum, see you there ~
[ Read More ] You can find more similar articles at Apache Wicket Tutorials