Re: Captcha regeneration

2010-06-09 Thread Josh Kamau
I used NonCachingImage instead and it worked. On Wed, Jun 9, 2010 at 12:15 PM, Josh Kamau wrote: > I think the old image is being cached by the browser. any idea how to stop > this? > > regards. > > > On Wed, Jun 9, 2010 at 11:45 AM, Robert Kimotho wrote: > >> Here is some code that I think will

Re: Captcha regeneration

2010-06-09 Thread Josh Kamau
I think the old image is being cached by the browser. any idea how to stop this? regards. On Wed, Jun 9, 2010 at 11:45 AM, Robert Kimotho wrote: > Here is some code that I think will help > >remove(image); >imagePass = randomString(6, 8); >

Re: Captcha regeneration

2010-06-09 Thread Robert Kimotho
Here is some code that I think will help remove(image); imagePass = randomString(6, 8); captchaImageResource = new CaptchaImageResource(imagePass); image = new Image("captchaImage", captchaImageResource

Captcha regeneration

2010-06-09 Thread Josh Kamau
Hi team; I am trying to regenerate a captcha to help users incase the previous one was not very clear. I have tried several things including the code below captchaImg = new CaptchaImageResource(); captcha = new Image("captchaImg", captchaImg); captcha.setOutputMarkupId(true); frmR