myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (Resolved) (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (TOMAHAWK-1613) HtmlCalendarRenderer Throws ClassCastException - not fixed
Date Thu, 15 Mar 2012 22:26:38 GMT

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

Leonardo Uribe resolved TOMAHAWK-1613.
--------------------------------------

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

I removed the cast, but not the final solution to ensure t:inputCalendar work as expected
is use DateBusinessConverter.
                
> HtmlCalendarRenderer Throws ClassCastException - not fixed
> ----------------------------------------------------------
>
>                 Key: TOMAHAWK-1613
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1613
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>    Affects Versions: 1.1.11
>            Reporter: Klaus Schuster
>            Assignee: Leonardo Uribe
>             Fix For: 1.1.12-SNAPSHOT
>
>
> The problem mentioned TOMAHAWK-1599 is not fixed.
> I could locally fix the problem with changing line 169 in File:
> org.apache.myfaces.custom.calendar.HtmlCalendarRenderer.java
> from:
>                 value = (Date) inputCalendar.getValue();
> to:
> if(converter instanceof DateConverter) {
>                value = ((DateConverter) converter).getAsDate(facesContext, inputCalendar);
>            } else {
>                value = (Date) inputCalendar.getValue();
>            } 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message