Hi, No, Wicket doesn't use the return values for all handlers but "preconditions" [1]. And even for preconditions the only value that matters is the literal *false.*
1. https://github.com/apache/wicket/blob/b24decd2f60983c11e75e5f2c34d0c6a93b56426/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L614 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, May 3, 2017 at 5:52 PM, Boris Goldowsky <bgoldow...@cast.org> wrote: > Is there any way to use a method that returns a promise as the onBefore of > an IAxaxCallListener? I don’t want the ajax operation to move forward > until the promise resolves. Due to the nature of promises in Javascript, > there doesn’t seem to be a way to simply wait for it. > > Boris > >