I totally forgot to mention the weirdest part, it works on Tomcat. I don't
know what that means.
On 11/17/05, Konstantin Ignatyev <[EMAIL PROTECTED]> wrote:
>
> That was my thought too but
> SimpleDateFormat("MM/dd/yyyy") happily accepts
> 7/1/2001 at least in 1.5.0_05
> ....
>
> --- Patrick Casey <[EMAIL PROTECTED]> wrote:
>
> >
> > Did you try setting your minDate to '07/01/2005'? I
> > don't have time
> > to check, but I'm not sure if MM/DD/YYYY requires
> > the padding zero or not.
> >
> > --- Pat
> >
> > > -----Original Message-----
> > > From: Todd Orr [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, November 17, 2005 4:34 PM
> > > To: Tapestry users
> > > Subject: JBoss/Tomcat Validation Error
> > Inconsistency
> > >
> > > We are evaluating Tapestry 4 at the company I'm
> > working for and we've run
> > > into a strange error. Upon navigating to the page
> > in question we receive
> > > an
> > > error when the page attempts to load its
> > validators. Perhaps we've missed
> > > something, or this is a true bug. I hope its the
> > former since this may
> > > impact our decision making. Any ideas would be
> > greatly appreciated.
> > >
> > > JDK5
> > > Tapestry4-beta13
> > > JBoss4.03SP1
> > > Tomcat5
> > >
> > > From the Exception page:
> > >
> > > Error initializing validator 'minDate' (class
> > > org.apache.tapestry.form.validator.MinDate):
> > Unable to convert '7/1/2005'
> > > to
> > > type java.util.Date (for property minDate of
> > object
> > >
> > [EMAIL PROTECTED]):
> > Unparseable date:
> > > "7/1/2005"; - nested throwable:
> > (java.text.ParseException: Unparseable
> > > date:
> > > "7/1/2005")
> > >
> > > 61</component> 62
> > > 63<component id="shippingDate" type="DatePicker">
> > 64 <binding name="value"
> > > value="shippingDate"/> 65 <binding
> > name="translator"
> > > value="translator:date,pattern=MM/dd/yyyy"/> 66
> > <binding name="validators"
> > >
> >
> value="validators:required,minDate=7/1/2005,maxDate=12/31/2005"/>
> > > 67<binding name="displayName"
> > value="literal:Shipping Date"/>
> > > 68</component> 69
> > > 70<component id="desc" type="TextArea"> 71
> > <binding name="value"
> > > value="desc"/>
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>