Re: Validator for 2 fields

2009-04-27 Thread Thorsten Scherler
On Mon, 2009-04-27 at 12:16 +0200, Thorsten Scherler wrote: > Hi all, > > I have a question about validating one field with another. > > I have a form that ask for the start page and for the end page of an > article. I need to validate whether the startPage is lesser or equal to > the endPage. >

Re: Validator for 2 fields

2009-04-27 Thread Thorsten Scherler
On Mon, 2009-04-27 at 06:43 -0400, Willis Blackburn wrote: > Thorsten, > > Look at the Wicket class called EqualInputValidator for guidance. > > You have to add it to the form, not to the individual fields. > Thanks. Meanwhile I found a working solution. Will post it now. salu2 > W > > >

Re: Validator for 2 fields

2009-04-27 Thread Willis Blackburn
Thorsten, Look at the Wicket class called EqualInputValidator for guidance. You have to add it to the form, not to the individual fields. W On Apr 27, 2009, at 6:16 AM, Thorsten Scherler wrote: Hi all, I have a question about validating one field with another. I have a form that ask for t

Validator for 2 fields

2009-04-27 Thread Thorsten Scherler
Hi all, I have a question about validating one field with another. I have a form that ask for the start page and for the end page of an article. I need to validate whether the startPage is lesser or equal to the endPage. I could do this in public void onSubmit() {...} of the form like: public v