Re: Calling an async third party function when submitting an AjaxButton

2020-02-14 Thread Andrei Kondratev
Shure you can always add a subclass of DefaultAjaxBehavior, get a callback url from this behavior and call this URL with wicket ajax later. Somewhat like this: AbstractDefaultAjaxBehavior ajaxBehavior = new AbstractDefaultAjaxBehavior() { @Override public void respond(@NotNull AjaxRequest

Calling an async third party function when submitting an AjaxButton

2020-02-14 Thread Gabriel Landon
Hi, In a form I have a form with an AjaxButton. On the button's click I would like to be able to call an async third party javascript function(recaptcha V3). Is there a way to call it and in the "then" function do the wicket's ajax call. Something like : grecaptcha.execute('', {}).then(); I did