Re: Wizard and PasswordTextField

2007-10-23 Thread Martijn Dashorst
Two forms? It uses two *FormComponents*, the base class of all input controls. Form form = new Form("form"); form.add(new PasswordTextFIeld("field1")); form.add(new PasswordTextField("field2")); form.add(new EqualPasswordInputValidator(field1, field2)); Martijn On 10/23/07, Fernando Wermus <[EM

Re: Wizard and PasswordTextField

2007-10-23 Thread Fernando Wermus
I am sorry! I understood. FormComponent is the parent of PasswordTextField. I thought it was a class related to forms. On 10/23/07, Fernando Wermus <[EMAIL PROTECTED]> wrote: > > It takes two forms to validate but I have just one form. I dont figure it > out how it works. I am a newbie > > On 10/2

Re: Wizard and PasswordTextField

2007-10-23 Thread Fernando Wermus
It takes two forms to validate but I have just one form. I dont figure it out how it works. I am a newbie On 10/23/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > Why not use EqualPasswordInputValidator ? > > Martijn > > On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi Fernando

Re: Wizard and PasswordTextField

2007-10-23 Thread Martijn Dashorst
Why not use EqualPasswordInputValidator ? Martijn On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi Fernando, > i solved this be integrating the check into the onSubmit method: > > /** > * @see org.apache.wicket.markup.html.form.Form#onSubmit() > */ >

Re: Wizard and PasswordTextField

2007-10-23 Thread [EMAIL PROTECTED]
Hi Fernando, i solved this be integrating the check into the onSubmit method: /** * @see org.apache.wicket.markup.html.form.Form#onSubmit() */ @Override public void onSubmit() { //validate the password fields... if (!(getModelObjec

Wizard and PasswordTextField

2007-10-23 Thread Fernando Wermus
In the Wizard example for singing up, I doesn't appear two PasswordTextField to verify if both were completed with the same password. I imagine this is something solved and then I was looking at google. At the same time it is something easy. How can I solve by my self? Just a guide. -- Fernando W