Hi Nate, I think you have to create/override the factor method in DateTextField
and set it from there:
protected DateTextField newDateTextField(String id, PropertyModel
dateFieldModel)
{
return new DateTextField(id, dateFieldModel, new
StyleDateConverter(false)).forDatePattern(id,dateFieldModel, "MM/dd"yy");
}
Hope this helps!
Regards,
Wen Tong--
The only constant in life is change.
----- Original Message ----
From: nate roe <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, May 21, 2008 3:38:00 PM
Subject: Formatting a DatePickerSettings
I'm using Wicket 1.2, and WicketExtensions 1.2.
I have a DateTextField that is formatted with the String, "MM/dd/yy" This
field has a corresponding DatePickerSettings, but the DatePickerSettings
doesn't follow this format (it adds dates with four-digit years,
"MM/dd/yyyy".)
How can I change this?
Thanks,
Nate
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]