// For the 'before' handler it looks like: function(attrs, jqXHR, settings){Wicket.Log.info('[Wicket Ajax 6 demo]: executing a before handler');}
listener.onBefore("Wicket.Log.info('[Wicket Ajax 6 demo]: executing a before handler');");
// For the 'complete' handler it looks like: function(attrs, jqXHR, textStatus){Wicket.Log.info('[Wicket Ajax 6 demo]: executing a complete handler');}
listener.onComplete("Wicket.Log.info('[Wicket Ajax 6 demo]: executing a complete handler. Status: ' + textStatus);");
// change the return to 'false' and the Ajax call wont be executed at all.
listener.onPrecondition("return true;");
attributes.getAjaxCallListeners().add(listener);