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/05/02 03:03:56 UTC

[jira] Resolved: (TOMAHAWK-1425) Support to java.sql.Date using inputCalendar tag.

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

Leonardo Uribe resolved TOMAHAWK-1425.
--------------------------------------

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

I committed an alternative solution. When it is called SimpleDateFormatter.format(Date) or SimpleDateFormatter.getWeekDate(Date), we just check if the date instance is java.sql.Date and we replace it with java.util.Date for the scope of the method.

> Support to java.sql.Date using inputCalendar tag.
> -------------------------------------------------
>
>                 Key: TOMAHAWK-1425
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1425
>             Project: MyFaces Tomahawk
>          Issue Type: New Feature
>          Components: Calendar
>    Affects Versions: 1.1.8
>            Reporter: Paulo Henrique Couto de Lima
>            Assignee: Leonardo Uribe
>            Priority: Minor
>             Fix For: 1.1.10-SNAPSHOT
>
>         Attachments: HtmlCalendarRenderer.java.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Trying to use a java.sql.Date value for inputCalendar results in IllegalArgumentException, thrown by the deprecated method getHour of java.sql.Date.
> java.util.Date does not throw any exceptions when getHour is invoked.

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