Re: Accepting multiple date masks with the "date" validator

2006-08-03 Thread Scott Van Wart
Adam Gordon wrote: Heh. Regular Expressions aren't for everyone - I happen to work w/ two engineers who live and die by them. In your bean setter for the date, I'd make sure no exceptions could be thrown, or handle them - the code I took over from an engineer we had that left had this issue

Re: Accepting multiple date masks with the "date" validator

2006-08-03 Thread Adam Gordon
Heh. Regular Expressions aren't for everyone - I happen to work w/ two engineers who live and die by them. In your bean setter for the date, I'd make sure no exceptions could be thrown, or handle them - the code I took over from an engineer we had that left had this issue and it took me almos

Re: Accepting multiple date masks with the "date" validator

2006-08-03 Thread Monkeyden
HAHA! I would have done the same thing. I don't want things like that (regexp) creeping around my application, even if I do only have to touch it once. Ech! On 8/3/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: Adam Gordon wrote: > IIOC, the only way you can do this with the stock validator

Re: Accepting multiple date masks with the "date" validator

2006-08-03 Thread Scott Van Wart
Adam Gordon wrote: IIOC, the only way you can do this with the stock validator is to use "mask" rather than "date" as the validator. Then, you can use a regex to dictate your mask. I'll warn you though, if you use a regular expression it's going to be VERY long because it will also need to vali

RE: Accepting multiple date masks with the "date" validator

2006-08-03 Thread Adam Gordon
IIOC, the only way you can do this with the stock validator is to use "mask" rather than "date" as the validator. Then, you can use a regex to dictate your mask. I'll warn you though, if you use a regular expression it's going to be VERY long because it will also need to validate that the date en