Re: Validation of date

2004-02-19 Thread John L. Webber
AFAIK there's not any way out of the box to do this with the 
FormValidatorAction. However, it's relatively easy to extend 
FormValidatorAction to provide this functionality.  Take a look at the 
source of AbstractValidatorAction; you need to override the act() 
method. You'll need to define your parameters with a different type 
(such as date); you also need to define your action in the map:actions 
section of the sitemap.

Hope this helps -- there may be an easier way to do this with Woody 
(check out the Cocoon Wiki: http://wiki.cocoondev.org/Wiki.jsp?page=Woody

John

Anna Bikkina wrote:

Hi,

I have to validate data in a form. Is there an already existing way to 
validate data using cocoon's form validator. Or if I have to write a 
validator that extends FormValdiator of cocoon how do I write methods that 
reflect the validate rules in descriptor.xml.

Can someone please throw some light on writing our own validator classes.

Thanks,
Anna.
 

--
-
Jentro Technologies GmbH
John L. Webber, Software Development
-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Validation of date

2004-02-18 Thread Anna Bikkina
Hi,

I have to validate data in a form. Is there an already existing way to 
validate data using cocoon's form validator. Or if I have to write a 
validator that extends FormValdiator of cocoon how do I write methods that 
reflect the validate rules in descriptor.xml.

Can someone please throw some light on writing our own validator classes.

Thanks,
Anna.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validation of date

2004-02-18 Thread Anna Bikkina
err: I meant validation of DATE

On Wednesday 18 February 2004 05:15 pm, Anna Bikkina wrote:
 ing cocoon's form val


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]