Re: Validation Week

2007-09-20 Thread Sam Barnum
Right, SimpleDateFormat isn't thread safe. I've heard recommendataions to use joda time instead (http://joda- time.sourceforge.net/) Seems like it takes some of the ugliness out of dealing with dates (haven't used it personally, but plan to) I think it's probably a good fit for what

Validation Week

2007-09-19 Thread James Cicenia
OK - Now I am trying to validate dates. I hate dates. I especially hate java dates, but I digress. So now I have this little wizard component that asks for a date. It has a date formatter. However, someone could type in 13/33/09 and it will take it, albeit change it to something else.

Re: Validation Week

2007-09-19 Thread Andrew Lindesay
Hello James; For formatter handling, you might like to check out the javadoc for... java.text.Format ...and then the LEDataQuantityFormat in my lejstuff library. You can hook these guys up to the formatter binding on something like the WOString element and it will transform the

Re: Validation Week

2007-09-19 Thread David LeBer
On 19-Sep-07, at 4:54 PM, James Cicenia wrote: OK - Now I am trying to validate dates. I hate dates. I especially hate java dates, but I digress. So now I have this little wizard component that asks for a date. It has a date formatter. However, someone could type in 13/33/09 and it

Re: Validation Week

2007-09-19 Thread Pierre Bernard
Java's SimpleDateFormat can be set not to allow for lenient parsing. Unfortunately NSTimestampFormatter lacks this ability. I have created a subclass of NSTimestampFormatter which for parsing uses an instance of SimpleDateFormat to create a Date which I then convert to an NSTimestamp

Re: Validation Week

2007-09-19 Thread Chuck Hill
On Sep 19, 2007, at 1:54 PM, James Cicenia wrote: OK - Now I am trying to validate dates. I hate dates. I especially hate java dates, but I digress. For what little comfort it might be, those are my exact sentiments! Chuck So now I have this little wizard component that asks for a