You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2010/09/03 19:33:35 UTC

[jira] Updated: (TOMAHAWK-1544) org.apache.myfaces.custom.date.HtmlDateRenderer.encodeEnd() broken

     [ https://issues.apache.org/jira/browse/TOMAHAWK-1544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe updated TOMAHAWK-1544:
-------------------------------------

           Status: Resolved  (was: Patch Available)
         Assignee: Leonardo Uribe
    Fix Version/s: 1.1.10-SNAPSHOT
       Resolution: Fixed

Thanks to Denis A. for provide this patch.

> org.apache.myfaces.custom.date.HtmlDateRenderer.encodeEnd() broken
> ------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1544
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1544
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Date
>    Affects Versions: 1.1.9
>            Reporter: Denis A.
>            Assignee: Leonardo Uribe
>             Fix For: 1.1.10-SNAPSHOT
>
>         Attachments: TOMAHAWK-1544_bugfix_patch.txt
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the problem is in the decoding of date:
>                     if (token.startsWith("year="))
>                     {
>                         userData.setYear(token.substring(5));
>                     }
>                     if (token.startsWith("month="))
>                     {
>                         userData.setYear(token.substring(6));
>                     }
>                     if (token.startsWith("day="))
>                     {
>                         userData.setYear(token.substring(4));
>                    .....
> userData.setYear() is called for each case, while it should be setMonth(), setDay() and so on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.