Captcha
- Demonstration: Capcha
- Java API: org.zkoss.zul.Captcha
-
JavaScript API: zul.wgt.Captcha
- Available in ZK PE and EE only
Employment/Purpose
A captcha component can generate a special distortion image, also
called a CAPTCHA (Completely Automated Public Turing test to tell
Computers and Humans Apart) image. Developers could set heightand
widthfor dimension of captcha. By default, captcha render the image
with a randomly generated text, and developers can set valueto assign
a purposive text.
Example

<vbox>
<captcha id="cpa" length="5" width="200px" height="50px"/>
</vbox>
Supported Events
- Inherited Supported Events: Image
Supported Children
*NONE
Troubleshooting
Linux
Captcha depends on Java Swing that might not work under some version of JVM. For the information to make it work under Linux, please refer to ZK Installation Guide: Linux.