which DateTextField are you using?
The one in Wicket Extensions or the one in Wicket-datetime API using JODA
time API underneath?
ensure you are using the one in wicket-datetime API then Study the date
converter class of the wicket-datetime API. it seems to work well for me
On Sun, Jul 6, 2008 at 5:01 AM, Rakesh Sinha <[EMAIL PROTECTED]>
wrote:
> Thanks Ayodeji.
>
> import org.apache.wicket.extensions.yui.calendar.DateField;
>
> This does the trick.
>
> But a clarification though - I am using the default version as
> specified in the javadoc.
>
> java: dateField = new DateField("birthday");
>
> html: <div wicket:id="birthday"></div>
>
> I need a couple of modifications to the same. Just curious how I get
> about doing the same.
>
> 1) The textfield (DateTextField) seems to parse the dates in mm/dd/yy
> format . I need to change the same to dd/mm/yy as the audience for
> which the application is targeted is going to be using that particular
> format.
>
> 2) When I enter the date as "14/14/1980", say (incorrect date to
> begin with) - for some reason it gets rounded, and appears as
> "2/14/81" (a very similar behavior is exhibited by the Calendar class
> in java.util too). Instead I would like to reminded that the input is
> actually an error and it is incorrect altogether.
> This might be more involved I believe.
>
>
>
>
> On 7/5/08, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> > are you talking about a DatePicker?
> >
> > On Sun, Jul 6, 2008 at 4:11 AM, Rakesh Sinha <[EMAIL PROTECTED]>
> > wrote:
> >
> >
> > > Hi -
> > > Just curious if there is a Calendar control / class associated with
> > > Wicket. Thanks.
> > >
> >
> > > ---------------------------------------------------------------------
> > > 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]
>
>