You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Frank Taffelt <fr...@interface-business.de> on 2003/06/20 14:46:31 UTC

woody date extension

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 ?

thanks in advance
Frank



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


Re: woody date extension

Posted by Bruno Dumon <br...@outerthought.org>.
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