THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Register your domain with the reCAPTCHA website.
- Download the Java library from here.
- Download the Div.java and ReCaptchaField.java.
- Add the following code into your click form.
Code Block | ||
---|---|---|
| ||
ReCaptchaField reCaptchaField = new ReCaptchaField("captcha", YOUR_CAPTCHA_PUBLIC_KEY, YOUR_CAPTCHA_PRIVATE_KEY, ReCaptchaField.THEME_CLEAN); |
Code Block | ||
---|---|---|
| ||
Div reCaptchaHolder = new Div(); reCaptchaHolder.add(reCaptchaField); form.add(reCaptchaHolder); |