As I said it's far from perfect!

The code is for wicket 7 indeed.

I was not aware to the 2 minutes limit and I never hit it.
A solution would be to call grecaptcha.execute on the button's click, wait
for the response and then submit the ajax request. I'm not a JS expert, thus
I don't know how difficult it is to implement.

For those who need a little bit of documentation : 
You need to add the behavior in the form onInitialize() method : 
            final AjaxRecaptchaV3Validator ajaxRecaptchaV3Validator = new
AjaxRecaptchaV3Validator("action","private key", "public key", "proxy url",
"proxy port");

The proxy parameters can be null.

Then on the ajax submit button overrides updateAjaxAttributes : 
                protected void updateAjaxAttributes(final
AjaxRequestAttributes paramAttributes) {

Sent from:

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to