cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: woody date extension
Date Mon, 23 Jun 2003 09:25:53 GMT
On Fri, 2003-06-20 at 14:46, Frank Taffelt wrote:
> Hi,
> 
> i have a form which contains 2 fields with date entries (ex.:'17.06.2003
> 13:55'). What are the steps to get woody to:
> 
> * validate the values against a given dateformat ex. "dd.MM.yyyy HH:mm"
> * to say in a assertion rule that date2 must be greater than date1
> (date1,date2 are the formfields)
> 
> do i have to create a new Woody Datatype or a new ValidationRule for
> Datatype String ?
> 

The best way would be to create a new datatype, at least if you're
interested in getting/setting the value of that widget as a Date object.
Otherwise a validationrule for strings (e.g. a regexp-based rule) might
be sufficient.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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


Mime
View raw message