Re: How to validate an entire object in a form (rather than a particular property of that object)

2010-04-20 Thread Dan Haywood
ok, thanks ... that worked. It threw up a different problem, but that'll be another post. Dan On 20/04/2010 01:53, Igor Vaynberg wrote: you can override form.onvalidate() and do your validation there -igor On Mon, Apr 19, 2010 at 4:51 PM, Dan Haywood dkhayw...@gmail.com

How to validate an entire object in a form (rather than a particular property of that object)

2010-04-19 Thread Dan Haywood
Another form-related question. I can see how to install a validator on a Form - Form#add(IFormValidator) - but it seems that AbstractFormValidator, the adapter, always requires a specific FormComponent to be specified in its error(...) method. How does one raise an error on the state of the

Re: How to validate an entire object in a form (rather than a particular property of that object)

2010-04-19 Thread Pedro Santos
Hi Dan On Mon, Apr 19, 2010 at 2:04 PM, Dan Haywood dkhayw...@gmail.com wrote: Another form-related question. I can see how to install a validator on a Form - Form#add(IFormValidator) - but it seems that AbstractFormValidator, the adapter, always requires a specific FormComponent to be

Re: How to validate an entire object in a form (rather than a particular property of that object)

2010-04-19 Thread Dan Haywood
Hi Pedro, but my problem is that there is no form component to represent the form itself, is there? Any other thoughts? Dan On 19/04/2010 20:27, Pedro Santos wrote: Hi Dan On Mon, Apr 19, 2010 at 2:04 PM, Dan Haywood dkhayw...@gmail.com mailto:dkhayw...@gmail.com wrote: Another

Re: How to validate an entire object in a form (rather than a particular property of that object)

2010-04-19 Thread Igor Vaynberg
you can override form.onvalidate() and do your validation there -igor On Mon, Apr 19, 2010 at 4:51 PM, Dan Haywood dkhayw...@gmail.com wrote: Hi Pedro, but my problem is that there is no form component to represent the form itself, is there? Any other thoughts? Dan On 19/04/2010