Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.4.10
-
None
Description
I think there is a small bug in
org.apache.wicket.extensions.markup.html.form.DateTextField.
A DateConverter is created in the constructor:
converter = new DateConverter()
{
private static final long serialVersionUID = 1L;
/**
- @see org.apache.wicket.util.convert.converters.DateConverter#getDateFormat(java.util.Locale)
*/
@Override
public DateFormat getDateFormat(Locale locale) { return new SimpleDateFormat(DateTextField.this.datePattern); }};
But I think getDateFormat(...) method should looks like:
@Override
public DateFormat getDateFormat(Locale locale)
{
if (locale == null)
return new SimpleDateFormat(DateTextField.this.datePattern. locale);
}