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