[
https://issues.apache.org/jira/browse/WICKET-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512644
]
Gerolf Seitz commented on WICKET-751:
-------------------------------------
yeah, you're probably right.
but what if the date is shown in a label instead of a textbox (don't know if
that is possible right now)?
concering localization: the YUI datepicker itself can (somehow) easily be
localized. you just have to set some properties. this has to be done per YUI
datepicker instance. an example for a german and japanese localization can be
found at the YUI calendar website.
anyway, if you don't feel the need for it, i'll not take anymore of your
precious time. i'm just glad the zeropadding is fixed (i only found the bug
because of some german locale testing). thx for that.
> 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.