Hi team;

I am trying to regenerate a captcha to help users incase the previous one
was not very clear. I have tried several things including the code below

                captchaImg = new CaptchaImageResource();
captcha = new Image("captchaImg", captchaImg);
captcha.setOutputMarkupId(true);
frmRegistration.add(captcha);
frmRegistration.setOutputMarkupId(true);
 IndicatingAjaxFallbackLink<String> lnkTryNewCapcha = new
IndicatingAjaxFallbackLink<String>("lnkTryNewCapcha") {

@Override
public void onClick(AjaxRequestTarget target) {
captchaImg = new CaptchaImageResource();
captcha.setOutputMarkupId(true);
captcha.render();
}
};
 frmRegistration.add(lnkTryNewCapcha);

However i am not successful. Which is the best way to do this.

Regards.
Josh.

Reply via email to