You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jacek Rogoźnicki (JIRA)" <ji...@apache.org> on 2011/04/05 18:29:05 UTC

[jira] [Created] (WICKET-3598) DatePicker issues with locale medium date format

DatePicker issues with locale medium date format
------------------------------------------------

                 Key: WICKET-3598
                 URL: https://issues.apache.org/jira/browse/WICKET-3598
             Project: Wicket
          Issue Type: Bug
          Components: wicket-datetime
    Affects Versions: 1.4.17
            Reporter: Jacek Rogoźnicki


DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));

*Case 1:*
* en-US locale
* for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM

*Case 2:*
* pl-PL locale
* 2010-10-25 is in the DateTextField
* DatePicker opens on *April 2031* rather than *October 2010*

I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.

I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov reassigned WICKET-3598:
---------------------------------------

    Assignee: Martin Grigorov

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>            Assignee: Martin Grigorov
>         Attachments: fix-WICKET-3598-1-locale.patch, fix-WICKET-3598-2-js-date-format-parse.patch, issue3598.zip, wicket-3598.zip
>
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Attila Király (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Attila Király updated WICKET-3598:
----------------------------------

    Attachment: wicket-3598.zip
                fix-WICKET-3598-2-js-date-format-parse.patch

Attaching second patch against 1.5 trunk (fix-WICKET-3598-2-js-date-format-parse.patch) that adds date formatting/parsing to wicket-date.js for the missing styles: M-, L-, F-.

Probably both patches can easily be backported to 1.4 too however the second patch changes some js function signatures in wicket-date.js so if that qualifies for API break then it is a no go.

Attaching the example app I used for testing the two patches (wicket-3598.zip).

I tested most combinations of the followings:
locale: US, German, Hungarian
style: S-, M-, L-, F-
browsers: Chrome 10, FF 4, IE 6, 8, 9, Opera 11.10

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>         Attachments: fix-WICKET-3598-1-locale.patch, fix-WICKET-3598-2-js-date-format-parse.patch, issue3598.zip, wicket-3598.zip
>
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Andera Del Bene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andera Del Bene updated WICKET-3598:
------------------------------------

    Attachment: issue3598.zip

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>         Attachments: issue3598.zip
>
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Attila Király (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Attila Király updated WICKET-3598:
----------------------------------

    Attachment: wicket-3598.zip
                fix-WICKET-3598-1-locale.patch

I am confirming that there are bugs in DatePicker & co. I just tried to reproduce this and already found 2. I used 1.5 so 1.4 is not the only affected branch.

1. I am attaching fix-WICKET-3598-1-locale.patch (against 1.5 trunk): o.a.w.datetime.StyleDateConverter is not honoring locale settings when converting Date to String. It is an easy fix the same modification is already present in the PatternDateConverter sibling class.

2. I am attaching a slightly modified example project (because I could not reproduce with the original): wicket-3598.zip. Steps to repro (assuming the fix for the first bug was applied):

- compile, deploy it to servlet container
- go to homepage. You should see "Oct 25, 2010" in the textfield
- open datepicker and just click on the selected/highlighted date (it should be Oct 25, 2010). The value in the textfield will change to "10 25, 2010" which is not correct

As far as I see the bug behind this is the following:
- YUI Calendar does not deal with date patterns at all
- wicket-date.js is doing the converting in parseDate (String -> Date) and substituteDate (Date -> String).
- wicket-date.js can only deal with the number formats (S- style) and not with the others (M-, L-, F-).







> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>         Attachments: fix-WICKET-3598-1-locale.patch, issue3598.zip, wicket-3598.zip
>
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-3598.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-RC4

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>            Assignee: Martin Grigorov
>             Fix For: 1.5-RC4
>
>         Attachments: fix-WICKET-3598-1-locale.patch, fix-WICKET-3598-2-js-date-format-parse.patch, issue3598.zip, unit-WICKET-3598-1-locale.patch, wicket-3598.zip
>
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Andera Del Bene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018887#comment-13018887 ] 

Andera Del Bene commented on WICKET-3598:
-----------------------------------------

If you wanna test my quickstart just run jetty via Maven as usual . 

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>         Attachments: issue3598.zip
>
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Jacek Rogoźnicki (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025667#comment-13025667 ] 

Jacek Rogoźnicki commented on WICKET-3598:
------------------------------------------

Sorry 'bout not posting the quickstart before and not really helping you with this, I just had LOTS of work to do. Thank you for fixing the bug, I might check the fix later.

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>            Assignee: Martin Grigorov
>             Fix For: 1.5-RC4
>
>         Attachments: fix-WICKET-3598-1-locale.patch, fix-WICKET-3598-2-js-date-format-parse.patch, issue3598.zip, unit-WICKET-3598-1-locale.patch, wicket-3598.zip
>
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022764#comment-13022764 ] 

Martin Grigorov commented on WICKET-3598:
-----------------------------------------

Attila's patches are applied to 1.5.x.
The first one is small so I don't mind to port it to 1.4.x, but the second one is rather big and I don't want to compromise 1.4.x stability at this point.
There are several other improvements in wicket-datetime which are only in 1.5.x anyway. 

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>            Assignee: Martin Grigorov
>             Fix For: 1.5-RC4
>
>         Attachments: fix-WICKET-3598-1-locale.patch, fix-WICKET-3598-2-js-date-format-parse.patch, issue3598.zip, unit-WICKET-3598-1-locale.patch, wicket-3598.zip
>
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017936#comment-13017936 ] 

Martin Grigorov commented on WICKET-3598:
-----------------------------------------

I haven't tried to reproduce the problem but I remember similar issues because the user used Java's DateFormat symbols for the pattern while actually the calendar expects its own ones (JavaScript). Check YUI Calendar to see whether they are the same as Java's ones.

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Attila Király (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Attila Király updated WICKET-3598:
----------------------------------

    Attachment: unit-WICKET-3598-1-locale.patch

Attaching a patch with a unit test about the first bug. Fails with trunk passes with first fix.

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>            Assignee: Martin Grigorov
>         Attachments: fix-WICKET-3598-1-locale.patch, fix-WICKET-3598-2-js-date-format-parse.patch, issue3598.zip, unit-WICKET-3598-1-locale.patch, wicket-3598.zip
>
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Jacek Rogoźnicki (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacek Rogoźnicki updated WICKET-3598:
-------------------------------------

    Description: 
DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));

Case 1:
- en-US locale
- for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM

Case 2:
- pl-PL locale
- 2010-10-25 is in the DateTextField
- DatePicker opens on April 2031 rather than October 2010

I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.

I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

  was:
DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));

*Case 1:*
* en-US locale
* for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM

*Case 2:*
* pl-PL locale
* 2010-10-25 is in the DateTextField
* DatePicker opens on *April 2031* rather than *October 2010*

I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.

I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.


> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Andera Del Bene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018885#comment-13018885 ] 

Andera Del Bene commented on WICKET-3598:
-----------------------------------------

hi!

I've attached a quickstart which shows the problems. As soon as I can I will investigate further.

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016066#comment-13016066 ] 

Martin Grigorov commented on WICKET-3598:
-----------------------------------------

can you provide an application that shows the problems? thanks!

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-3598) DatePicker issues with locale medium date format

Posted by "Attila Király (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Attila Király updated WICKET-3598:
----------------------------------

    Attachment:     (was: wicket-3598.zip)

> DatePicker issues with locale medium date format
> ------------------------------------------------
>
>                 Key: WICKET-3598
>                 URL: https://issues.apache.org/jira/browse/WICKET-3598
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.4.17
>            Reporter: Jacek Rogoźnicki
>         Attachments: fix-WICKET-3598-1-locale.patch, issue3598.zip
>
>
> DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));
> Case 1:
> - en-US locale
> - for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM
> Case 2:
> - pl-PL locale
> - 2010-10-25 is in the DateTextField
> - DatePicker opens on April 2031 rather than October 2010
> I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.
> I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira