Hello, I would like to display a CAPTCHA challenge to a user after 3 failed login attempts. If using tapestry5-spring-security 2.0.1 the form looks like:
<form xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd" action="${loginCheckUrl}" method="POST"> <t:if test="failed">Username and/or password was wrong!<br /></t:if> <label class="username" for="j_username">Username:</label> <input class="username" name="j_username" type="text" size="30"/> <label class="password" for="j_password">Password</label> <input class="password" name="j_password" type="password" size="10" maxlength="30"/> <input id="submit" class="submit" type="submit" value="log in"/> </form> Since this is not a T5 form element I can not just add <t:if> as in: <form xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd" action="${loginCheckUrl}" method="POST"> <t:if test="failed">Username and/or password was wrong!<br /></t:if> <label class="username" for="j_username">Username:</label> <input class="username" name="j_username" type="text" size="30"/> <label class="password" for="j_password">Password</label> <input class="password" name="j_password" type="password" size="10" maxlength="30"/> <input id="submit" class="submit" type="submit" value="log in"/> <t:if test="showCaptcha"> <img src="${captchaImage}" id="kaptchaImage" /> <label>Please...</label> <input t:type="TextField" t:id="captchaText" value="captchaText" t:validate="required"/> </t:if> </form> How do I "convert" the regular <form> element to <t:form>, so that I can put captcha related validation into onValidate method and still process the spring security (action="${loginCheckUrl}")? Thanks, Borut --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org