--- Sylvain Wallez <[EMAIL PROTECTED]> wrote: > So what about the following changes: > - when a field isn't marked as required, validators are called even if > the value is null, > - validators that need a value to do their job (e.g. regexp, range, > email, etc) will return "true" (valid) for a null value > - other validators (such as assert) will behave according to their > semantics with null values. > > What do you think?
+1 to these changes. On a related topic, other than because of history, why is "required" an attribute of the widget rather than an attribute of the validation element? Conceptually, "required" is part of a form's validation logic. --Tim Larson __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus
