Hello,

We have a re-captcha button which refreshes captcha password image. It
works fine until we add WiQuery ButtonBehavior to the button. With
this behavior the captcha image is no longer refreshed and Wicked Ajax
Debugger displays "INFO: "Channel busy - postponing". The following is
a code snippet which describes the problem. Uncommenting add(new
ButtonBehavior()) breaks re-captcha functionality.

Please help,

Thanks

new AjaxLink("reCaptcha")
            {
                @Override
                public void onClick(AjaxRequestTarget target) {
                    password = newPassword();
                    CaptchaImageResource captchaImageResource = new
CaptchaImageResource(password);
                    NonCachingImage imgCaptcha = new
NonCachingImage("captchaImage", captchaImageResource);
                    imgCaptcha.setOutputMarkupId(true);
                    SignUpForm.this.addOrReplace(imgCaptcha);
                    if (target != null) {
                        target.addComponent(imgCaptcha);
                    }
                }
            }//.add(new ButtonBehavior())

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to