Hello,
I'm trying to use a date picker with validation:
<binding name="translator" value="translator:date,pattern=yyyy/MM/dd"/>
<binding name="validators" value="validators:required,minDate=7/1/2006,maxDate=12/31/2006"/>

But I'm having 2 issues. First I keep getting this error:
Error initializing validator 'minDate' (class org.apache.tapestry.form.validator.MinDate): Unable to convert '7/1/2006' to type java.util.Date (for property minDate of object [EMAIL PROTECTED]): Unparseable date: "7/1/2006"; - nested throwable: (java.text.ParseException: Unparseable date: "7/1/2006")

I've tried it as 2006-07-01, 07/01/06, 07/01/2006, etc, they all fail. Any clues? I'm following the book "Enjoying Web Development with Tapestry" and that is how they show to do it.

Secondly, is there any way to do something like minDate=currentDate? Using something like minDate=ognl:date and minDate=date fail (not that they should work, just trying random things).

System information:
Mac OS X 10.4.8
JBoss 4.0.5 GA Application Server
Tapestry 4.0.2
java version "1.6.0-dp"
Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
Java HotSpot(TM) Core VM (build 1.6.0-b88-17-release, interpreted mode, sharing)

Thank you!

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

Reply via email to