On Thu, Jun 17, 2010 at 9:47 AM, Brad Grier <brad.gr...@salusnovus.com>wrote:
> I'm using EmailAddressValidator on a form field with setRequired(false). > The validator is triggering an invalid format message when the field is left > blank. I'm having the same problem with RangeValidator against a custom > currency class I've created. Shouldn't validation be skipped when the field > is empty? When I use RangeValidator with Longs or Doubles, it behaves like > I'd expect. I'm sure I'm missing something obvious but I've been scratching > my head longer than I care to admit! > > Thanks. There's a method validateOnNullValue that should be returning false by default. This should make it skip the validation on an empty value. I'd suggest that you create a quickstart that reproduces the bug. Typically you will find some error in the code while doing this. If not, you can submit the quickstart to JIRA and we will take a look since it would be a bug. -- Jeremy Thomerson http://www.wickettraining.com