ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Captcha not Working in ZK-JSP

hiravoza
21 Dec 2010 06:35:56 GMT
21 Dec 2010 06:35:56 GMT

Hi all,

I am using ZK framework and facing some issue while using captcha with zk-jsp.
I am using zul version 5.05 and zuljsp version 1.4.1, and the following code is not working

<z:captcha id="cpa" length="5" />

I haven't set any other specification
the error log is as follows

org.zkoss.zk.ui.impl.UiEngineImpl handleError:1251
SEVERE: >>org.zkoss.zk.ui.UiException: Library property, org.zkoss.zul.captcha.engine.class, required
>> at org.zkoss.zul.Captcha.newCaptchaEngine(Captcha.java:402)
>> at org.zkoss.zul.Captcha.getCaptchaEngine(Captcha.java:378)
>> at org.zkoss.zul.Captcha$1.onEvent(Captcha.java:434)
>> at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:206)
>> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:140)
>>...

Please help me with the issue.
thnx in advance..

samchuang
22 Dec 2010 03:25:18 GMT
22 Dec 2010 03:25:18 GMT

hi

the Captcha in zk 5 is ZK PE and ZK EE version, you can download from Free Evaluation Downloads

hiravoza
22 Dec 2010 06:23:20 GMT
22 Dec 2010 06:23:20 GMT

u mean to say its not available under general - free to use license ??

if yes .. is there any alternative solution for the issue??

samchuang
22 Dec 2010 18:45:01 GMT
22 Dec 2010 18:45:01 GMT

Hi

if your project is GPL, you can apply ZK Open Source License , then you can use it.

if your project is not GPL, you can refer to here to use another version of captcha

you also need to build this tag for zuljsp