-
1. Re: Captcha: customized message for incorrect response
jacob.orshalick Jun 17, 2008 10:10 PM (in response to accless)Not at the moment. Vote for JBSEAM-2929
-
2. Re: Captcha: customized message for incorrect response
bemar Oct 22, 2010 6:29 AM (in response to accless)Hi,
thx for that hint. I made a MyCaptcha class extending captcha with the above posted code. But where do I have do configure to take my class instead of the superclass?
Currently only the superclass with the standard text is taken by seam.Thats my xhtml code
<s:decorate id="captchaField" template="layout/edit.xhtml"> <ui:define name="label">#{messages.text_captcha}</ui:define> <h:graphicImage value="/seam/resource/captcha" /> <h:inputText id="verifyCaptcha" value="#{captcha.response}" size="7" required="true" styleClass="text" label ="#{messages.text_captcha}"> <s:validate /> </h:inputText> </s:decorate>
Thx
Ben
-
3. Re: Captcha: customized message for incorrect response
bemar Oct 22, 2010 8:36 AM (in response to accless)Got it. This Thread was very usefull
http://seamframework.org/Community/CanIOverrideSeamsCredentialsComponent
-
4. Re: Captcha: customized message for incorrect response
mosesemm May 16, 2014 7:20 AM (in response to bemar)Hi,
I couldnt get this to work on seam 2.3.
Even after i have the message there it still show:org.jboss.seam.captcha.error
the debug log message below does show, confirming somehow it does hit my class...So ur help will be appreciated, i am ok with the std captcha algorith the problem is just the message.
@Name("org.jboss.seam.captcha.captcha")
@Scope(ScopeType.EVENT)
@Install(precedence = 40)
@BypassInterceptors
public class CaptchaHelper extends Captcha {
/**
*
*/
private static final long serialVersionUID = 1L;
@Logger
Log log;
@CaptchaResponse(message = "Wrong answer..")
@Override
public String getResponse() {
log.debug("i was here");
return super.getResponse();
}
}