THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Since Wicket Ajax now register DOM events (like click, change, ...) instead of using inline attributes like onclick, onchange, ... there is no more a script to decorate. Instead the new implementation provides points to listen to:
- precondition before handler - executed before the data for the Ajax call is calculated. Even before the preconditions.
- precondition - if earlier. If it returns false then the Ajax call (and all handlers below) is not executed at all
- before beforeSend handler - executed before the fire actual execution of the Ajax call.
- after handler - if the Ajax call is asynchronous then it is executed right after its firing. If it is synchronous then it is executed after the complete handler
- success handler - executed on successful return of the Ajax call
- failure handler - executed on unsuccessful return of the Ajax call
- complete handler - executed on both successful and unsuccessful return
...
IAjaxCallListener's can be used to listen for the lifecycle of an Ajax call for a specific component.
If the user application needs to listen for all Ajax calls then it may subscribe to the following topics:
- /ajax/call/before
- /ajax/call/beforeSend
- /ajax/call/after
- /ajax/call/success
- /ajax/call/failure
- /ajax/call/complete
...