I think the best thing (and only thing) to do would be to, like someone else suggested, to write a custom validator, and then if the incoming value is #, return true. Otherwise, run the validation. For examples of custom validators, download the commons validator distribution. It has an example project in there which does these things and you can use that code.
Harsh. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 8:13 AM To: user@struts.apache.org Subject: Re: change date validator-rules The thing is that user can input nothing in filed, but if they input # than date validation is "skipped", but if input is different from # then date validation is executed. My idea was to change date validation to check if the input if equal #, but my knowledge of js is very limited, and dont know how to do that :-( can you give me some example? Tnx, Stanislav ----- Original Message Follows ----- > Write a custom validator rule, check for the field value and if the value is > not #, then set error message. > > HTH, > > > On 5/25/06, Stanislav <[EMAIL PROTECTED]> wrote: > > > > Hi! > > > > I want to change date validator-rules so ih the input data id equal "#" > > than return that everything > > is ok... How can i do that? > > > > Tnx, Stanislav > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]