NumberCaptcha Add-on
A simple CAPTCHA component that asks users to key in a few digits to prove they are human.
This component is merely a skeleton component to show the minimum needed for a widget that is implemented in JavaScript (not GWT). It uses a shared state (provided to the JavaScript end internally using the GWT compiler) that updates the client when it changes (programmatically from the server side) and a call-back mechanism from client to server.
Sample code
VerticalLayout content = new VerticalLayout(); setContent(content); content.addComponent(new NumberCaptcha(4, 3000, "Pos %d, enter %s as a digit", "Hit RETURN to continue when finished.") { @Override public void captchaGood() { Notification.show("Good, you are a human being. Thanks."); } @Override public void captchaBad() { Notification.show("Please try again."); } });
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
First public release as a Vaadin Add-On.
- Released
- 2016-03-04
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 7.0+
- Vaadin 8.0+
- Browser
- Browser Independent
NumberCaptcha Add-on - Vaadin Add-on Directory
A simple CAPTCHA component that asks users to key in a few digits to prove they are human.This component is merely a skeleton component to show the minimum needed for a widget that is implemented in JavaScript (not GWT).
It uses a shared state (provided to the JavaScript end internally using the GWT compiler) that updates the client when it changes (programmatically from the server side) and a call-back mechanism from client to server.