Thanks! I'll look into fixing that. I'm sorry that the TapX web site isn't up to date ... I've been moving the code from Maven to Gradle and from SVN to Git (on GitHub). Alas, I've been too busy with clients (and my ten-month old son) to get this up to date ... the code is under active work though (I use it with both of my current project clients).
https://github.com/hlship/tapx There's an issue manager there as well. On Thu, Dec 23, 2010 at 11:30 AM, raulmt <rau...@gmail.com> wrote: > > Hi, > > I did not find a place to file an issue or something like that, so I'll > write it here: I'm using the Captcha components of Tapx project, and I > think > the KaptchaImage component has a problem with Ajax requests. If you use a > Captcha in a form associated to a Zone and you make a mistake in the > captcha, if you return again the block containing the form (as the Ajax > response) to let the errors on the form appear, the image of KaptchaImage > will not change, even when in the captchaText variable in session there is > another value. Apparently this happens because the image is already loaded > in the page by the browser, so even when I insert another img tag, because > the src is the same as the previous image, the browser does not load again > the image. > > I solved this by making a mixin that replaces the beginRender phase of > KaptchaImage, adding a context param (the current time in milis, for > example) to the img src attribute link. That way, the URL will be always > different and, when the captcha updates via an Ajax request, the different > image WILL be loaded. > > I hope this helps anybody and, ideally, this or similar fix could get into > the tapx project. > > Regards. > -- > View this message in context: > http://tapestry-users.832.n2.nabble.com/KaptchaImage-TapX-tp5862667p5862667.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com