cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <agalla...@agsoftware.dnsalias.com>
Subject Re: Woody - required vs validation
Date Fri, 22 Aug 2003 00:43:57 GMT
Timothy Larson dijo:
> I noticed in the Woody form1 sample that the drinks are
> not marked required="true", but they act like they are
> required because of their validation rule:
>   <wd:validation>
>     <wd:value-count exact="2"/>
>   </wd:validation>
> It seems that if the field is not required and no drinks
> are selected, then this validation rule should not be
> enforced.
>
> I am wondering what meaning we want to attach to the
> required attribute.  Comments anybody?

I think you are right the correct approach is:

A-required="true"  - field cannot be empty (NULL) and must be validated.
B-required="false" - if (field is not empty) then validate.

Best Regards,

Antonio Gallardo




Mime
View raw message