cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject CForms: Validate <fd:datatype base="date">
Date Wed, 26 Jan 2005 11:48:37 GMT
Hi Cocooners,

I would like to validate date fields in a Cocoon form.

My field definition looks as follows:

         <fd:field id="von">
           <fd:label>Von</fd:label>
           <fd:datatype base="date">
             <fd:convertor type="formatting">
               <fd:patterns>
                 <fd:pattern>dd.MM.yyyy</fd:pattern>
               </fd:patterns>
             </fd:convertor>
           </fd:datatype>
         </fd:field>

The problem is that the form field accepts values like

   20.01.200x

which is interpreted as

   20.01.200

and results in the formatted value

   20.01.0200


Is it possible to avoid this behaviour? When I use <fd:javascript>
validation, I can access only the already converted value of the widget,
which is 20.01.200.

Thanks in advance!
-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message