Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
1.4-RC7
-
None
-
None
-
Windows Vista, JDK 6 update 14
Description
I've tried many different ways of changing the date pattern of the selected date in DateField but none worked. I've looked at the produced javascript code and I could see that the datePattern is set to the configured date format (dd-MMM-yy); however, the selected date is still displayed in the following format 'dd-MM-yyyy' .
Below is my code for creating the DateField and setting the date pattern:
<code>
editor = new DateField("editor", new PropertyModel(model, property))
{
@Override
protected DateTextField newDateTextField(String id, PropertyModel model)
@Override
protected DatePicker newDatePicker()
{
return new DatePicker()
{
@Override
protected String getDatePattern()
};
}
};
</code>
Attachments
Issue Links
- duplicates
-
WICKET-2427 substituteDate function doesn't respect date pattern
- Resolved