When the datepicker widget draws, you get an edit box, and a
button to click that pops up a calendar widget. You can either set the date
via the widget, or you can just write in any old date you want to via the
text box. The question becomes though, what happens if the user types in an
invalid date e.g. "Patrick" instead of "12/25/99"?

 

            The behavior *seems* to be to return null to the bound
component, which really isn't going to get the job done for me because I
need to be able to differentiate between "user didn't choose a date" and
"user put something in the date box, but it's nonsense".

 

            Is there a way for me to validate the string in the datepicker's
box before the internal datepicker logic decides to null it out? Or am I
going to have to scrap the datepicker and just roll out a ValidField and a
DateValidator?

 

            --- Path 

Reply via email to