[
https://issues.apache.org/jira/browse/WICKET-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512640
]
Gerolf Seitz commented on WICKET-751:
-------------------------------------
i was actually thinking about "names of days and stuff". i already got it
working with names of months. there aren't that many other date related fields,
so maybe it wouldn't be that hard. and since the YUI datepicker only needs day
(of month), month and year, all other date pattern elements would only have to
be ignored in the string-to-date direction and be converted to the values (eg
name of weekday) in the date-to-string direction.
but it probably comes down to whether users would even need it.
anyway, since the datepicker basically only works with a short date pattern
(well, any variations of (d+, M+, yy+), maybe this should be mentioned in the
javadocs of the datepicker somewhere.
> DatePicker doesn't adhere to the provided DatePattern
> ------------------------------------------------------
>
> Key: WICKET-751
> URL: https://issues.apache.org/jira/browse/WICKET-751
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-datetime
> Affects Versions: 1.3.0-beta2
> Reporter: Gerolf Seitz
> Fix For: 1.3.0-beta3
>
> Attachments: datePattern.patch
>
>
> when a pattern like dd.MM.yy is used, the date is actually converted as if
> the pattern was d.M.yyyy
> this is due to the code in line 50 in DatePicker.js
> var val = '${datePattern}'.replace(/d+/, dt).replace(/M+/,
> month).replace(/y+/, yr);
> the code should be changed, so that at least patterns like /dd+/, /MM+/ and
> /yy/ are supported.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.