Thanks for the answer Martin.
But the example from wicket-library is not quite the same.
Your answer, however, has help me find the solution that works on wicket
1.5.
I wanted to keep the captcha functionality independent of the form, much as
it is on the book.

So I only changed three lines:
First, instead of using an anonymous CaptchaImageResource object, i declared
it private and part of the Captcha class.
second, instead of using Image, I used NonCachingImage
finally on the book, it resets the captcha value on the onBeforeRender()
function of the panel. In there, I called captchaImageResource.invalidate()
before the call to super.onBeforeRender(); 

That solved the problem.

Thanks for your help,
Lucas


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Captcha-cookbook-example-image-not-refreshing-on-wicket-1-5-7-tp4649875p4649880.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to