myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] Resolved: (TOMAHAWK-1390) t:inputCalendar displays year 1900 when an incorrect date is entered
Date Sun, 14 Jun 2009 23:43:07 GMT

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

Leonardo Uribe resolved TOMAHAWK-1390.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.9-SNAPSHOT
         Assignee: Leonardo Uribe

There is a bug on SimpleDateFormatter. 

Suppose this pattern - date string:

"dd-MM-yy", "08-01-87x"

It should fail, but SimpleDateFormatter just skip the remaining chars.

The problem is when you put something like this:

"dd-MM-yyyy", "08-01-x87"

the parser get the year as 00, and the resulting year is 1900.

In both cases it is expected that the parser fails



> t:inputCalendar displays year 1900 when an incorrect date is entered
> --------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1390
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1390
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Calendar
>    Affects Versions: 1.1.7
>            Reporter: Adam Siemion
>            Assignee: Leonardo Uribe
>            Priority: Minor
>             Fix For: 1.1.9-SNAPSHOT
>
>
> When the user provides an incorrect date value (e.g. "12" when the popupDateFormat is
"dd/MM/yyyy") the popup will display year 1900 instead of the current year.

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


Mime
View raw message