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('<publicCaptchaKey>', {<options>}).then(<do the wicket
ajax call >);

I did not find a way to do it with IAjaxCallListener.
I'm using wicket 7.

In wicket 1.5, I think that might have been possible like that: 
protected IAjaxCallDecorator getAjaxCallDecorator() { 
    return new AjaxCallDecorator() { 
      @Override 
      public CharSequence decorateScript(Component c, CharSequence script) { 
        return "grecaptcha.execute('publicCaptchaKey', {action:
'action'}).then(function(token) { "
               + <do_some_stuff>
               + script      <--- wicket ajax
               + "}) "; 
      } 
    }; 
  } 

regards,

Gabriel.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to