I am using wicket 6.6.0 and these behaviors:
AjaxFormComponentUpdatingBehavior AjaxFormSubmitBehavior.
In both case, I am overriding the getPreconditionScript() and
getSuccessScript() method to display and hide a "please wait" gif around
each ajax call.
@Override
protected CharSequence getSuccessScript() {
return "$.swtu.event.postAjaxHook();";
}
When I just want to display a dialog box for example after an Ajax call
(onChange behavior), I override the onUpdate or onEvent method and used the
target.appendJavaScript("...") method.
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.appendJavaScript("");
}
Hope this helps.
David
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/AbstractDefaultAjaxBehavior-complete-handler-tp4659230p4659234.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]