Hello,

I'm having problems with a Captcha image reloading method, and I'm sure it
must be very easy to solve, but I can't!!
I have a form with about 10 fields, and at the end one Captcha image using
CaptchaImageResource and Image controls. Sometimes it is difficult to read,
so I put one link with the following OnClick code:

   public void onClick()
      {
             imagePass=randomString(6,8);
             captchaImageResource = new CaptchaImageResource(imagePass);
             captchaImage.setImageResource(captchaImageResource);
      }

I mean, I create a new captcha image correctly, but all the content of the
fields are removed! This means that the user has to input them again. I
think it is just a matter of the Link... if I just leave the OnClick code
blank, it reloads the page without maintaining the values.

 I have a Form and a CompoundPropertyModel which works fine:

     // Form, pojo, and compound property model
      InitiationForm initiationForm;
      NewUser newUser;
      CompoundPropertyModel initiationFormModel;

    //Create CompoundPropertyModel
    initiationFormModel = new CompoundPropertyModel(newUser);

   // Form
   initiationForm = new InitiationForm ("initiationForm",
initiationFormModel);


How can I refresh the image without losing the already input values?

Thank you very very much for your time!
Oskar

-- 
View this message in context: 
http://www.nabble.com/Reload-Captcha-Image-tf4674760.html#a13356193
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to