cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <dho...@csir.co.za>
Subject Re: cform date validation
Date Wed, 07 Dec 2005 09:58:20 GMT
Another insight from another mailing list:
http://lists.gnu.org/archive/html/classpath/2004-10/msg00090.html 

You could also implement a pattern match range check on 
your input field, using cform functionality, without resorting to JS.
see:
http://localhost:8080/cocoon/docs/userdocs/forms/validation.html 
( fd:range, or fd:regexp or even fd:javascript)
I would think there must be on-line examples of date expressions?


>>> gunter.dhondt@sofico.be 2005/12/07 11:18 AM >>>
have the same issue with cocoon 2.1.4 and apparrently the java.util.Date 
class accepts this (as far as I know) so the only thing that you can do 
(as what I did) is to implement a clientside date validation; you can find 
plenty examples on the net but if you want I can easily drop one here

Gunter


Merico Raffaele < raffaele.merico@less.ch > 
07/12/2005 10:13
Please respond to
users@cocoon.apache.org 

To
users@cocoon.apache.org 
cc

Subject
cform date validation
Dear community

I have a strange effect with cform date fields. Values like 32.12.2005 or
29.2.2005 are automatically corrected to 1.1.2006 or 1.3.2005 without any
validation error. What can I do to let the cform validation service 
declare such dates as incorrect? 

For your support many thanks in advance ... Raffaele



-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
HelpDesk@csir.co.za.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


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


Mime
View raw message