Re: Changing form validation depending on submit button.

2009-04-14 Thread Ian MacLarty
On Tue, Apr 14, 2009 at 1:59 AM, Igor Vaynberg wrote: > form#validate is final. > Not according to the 1.3.2 docs. Also there is no Form#onValidate method in 1.3.2. I'm looking here: http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/form/Form.html. In any

Re: Changing form validation depending on submit button.

2009-04-13 Thread Igor Vaynberg
form#validate is final. -igor On Mon, Apr 13, 2009 at 12:38 AM, Ian MacLarty wrote: > On Fri, Apr 10, 2009 at 11:09 AM, Igor Vaynberg > wrote: >> there is form#onvalidate() >> > > You mean form#validate() I think.  Thanks for the pointer. > > Ian. > > --

Re: Changing form validation depending on submit button.

2009-04-13 Thread Ian MacLarty
On Fri, Apr 10, 2009 at 11:09 AM, Igor Vaynberg wrote: > there is form#onvalidate() > You mean form#validate() I think. Thanks for the pointer. Ian. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Changing form validation depending on submit button.

2009-04-09 Thread Igor Vaynberg
there is form#onvalidate() -igor On Thu, Apr 9, 2009 at 5:05 PM, Ian MacLarty wrote: > On Thu, Apr 9, 2009 at 8:20 PM, John Krasnay wrote: >> Have a look here: >> >> http://cwiki.apache.org/WICKET/conditional-validation.html >> > > Thanks.  That's pretty much what I ended up doing.  It seemed a

Re: Changing form validation depending on submit button.

2009-04-09 Thread Ian MacLarty
On Thu, Apr 9, 2009 at 8:20 PM, John Krasnay wrote: > Have a look here: > > http://cwiki.apache.org/WICKET/conditional-validation.html > Thanks. That's pretty much what I ended up doing. It seemed a bit kludgy to be doing validation in the onSubmit method. It means I can't put my error handlin

Re: Changing form validation depending on submit button.

2009-04-09 Thread John Krasnay
Have a look here: http://cwiki.apache.org/WICKET/conditional-validation.html jk On Thu, Apr 09, 2009 at 02:45:26PM +1000, Ian MacLarty wrote: > Hi, > > I have a form with two submit buttons. I want the form to validate > differently depending on what submit button is pressed (i.e. I want to >

Changing form validation depending on submit button.

2009-04-08 Thread Ian MacLarty
Hi, I have a form with two submit buttons. I want the form to validate differently depending on what submit button is pressed (i.e. I want to use a different IFormValidator depending on what button is used to submit the form). How would I go about doing this? Ian. -