cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: [cforms] Optionally required fields
Date Wed, 07 Jan 2004 17:29:11 GMT
Tim Larson wrote:

>--- Sylvain Wallez <> 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.

True. But being required produces a distinguishing display that is not 
possible if only represented by a validator.

I guess it's the reason. Maybe Bruno could tell us more about this.


Sylvain Wallez                                  Anyware Technologies 
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -

View raw message