Details
Description
When a redirect is received from the server during Ajax requests, #processAjaxResponse() explicitly calls #done() on the current call:
(wicket-ajax-jquery.js, line 777)
if (typeof(redirectUrl) !== "undefined" && redirectUrl !== null && redirectUrl !== "") { // In case the page isn't really redirected. For example say the redirect is to an octet-stream. // A file download popup will appear but the page in the browser won't change. this.success(context); this.done(context.attrs);
This leads to:
- done() being called before the step added in #success()
- done() being called a second time from the step added in #complete()