[ 
https://issues.apache.org/jira/browse/WICKET-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512642
 ] 

Eelco Hillenius commented on WICKET-751:
----------------------------------------

> i was actually thinking about "names of days and stuff".

Stuff rocks. Names of days I don't know ;)

Seriously, it's not so much that I think it is impossible to do, but rather 
that I think it's hard to support all the languages there are. The way the date 
picker is set up currently, it should support the pattern of any locale out 
there. Unless resources for all the different days/ months/ etc are readily 
available someone (and with the right license), I think it's too much of a 
hassle.

And then there is the question of whether it is useful in the first place. I 
think people will typically use the picker, but it's great that they can 
alternatively just type it as well. Tbh, I don't think anyone would prefer to 
type names of days and months to just using the numbers.

> 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.

Reply via email to