Hi!

There are 2 tweaks I'd like to do with date validations.


Tweak #1

Would there be a way to set the minDate to the beginning of the day (and thus make the exact time at which it was instanciated irrelevant)?
At this moment, in my page spec, I have:

<bean name="minDate1" class="org.apache.tapestry.form.validator.MinDate">
 <set name="minDate" value="new java.util.Date()"/>
</bean>

Now with my DatePicker component, when I enter today's date, it does not get through validation, as 2006-02-22 00:00 (the DatePicker's date) is before 2006-02-22 10:04 (the minDate) for example.


Tweak #2

And is it possible to tweak the validation error message not to display the time?

Now I have:
Drop off date must be on or after 2006-02-23 10:04.

And I would like:
Drop off date must be on or after 2006-02-23.

Thanks in advance.

/Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to