Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Register your domain with the reCAPTCHA website.
  2. Download the Java library from here.
  3. Download the Div.java and ReCaptchaField.java.
  4. Add the following code into your click form.
Code Block
titleDeclaration
ReCaptchaField  reCaptchaField = new ReCaptchaField("captcha", 
                                                    YOUR_CAPTCHA_PUBLIC_KEY,
                                                    YOUR_CAPTCHA_PRIVATE_KEY, 
                                                    ReCaptchaField.THEME_CLEAN);
Code Block
titleAdd to form
Div reCaptchaHolder = new Div();
reCaptchaHolder.add(reCaptchaField);
form.add(reCaptchaHolder);