Re: change date validator-rules

2006-05-25 Thread Vinit Sharma
Well I can't tell you the JS way, but surely I can tell you how to do it Struts way. Your custom validator rule should first check for fields value. If not # then call the date validator: if(! ValidatorUtils.getValueAsString(bean, field.getProperty ()).equals("#")) { if(

RE: change date validator-rules

2006-05-25 Thread Chaudhary, Harsh
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

RE: change date validator-rules

2006-05-25 Thread Chaudhary, Harsh
Or rather, if the value is #, return true. Harsh. -Original Message- From: Vinit Sharma [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 7:54 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: change date validator-rules Write a custom validator rule, check for the

Re: change date validator-rules

2006-05-25 Thread Stanislav
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 kn

Re: change date validator-rules

2006-05-25 Thread Vinit Sharma
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