You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thorbjørn Ravn Andersen (JIRA)" <de...@myfaces.apache.org> on 2006/09/29 10:10:50 UTC

[jira] Created: (TOMAHAWK-719) Fails when using Map as backing bean

Fails when using Map as backing bean
------------------------------------

                 Key: TOMAHAWK-719
                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-719
             Project: MyFaces Tomahawk
          Issue Type: Bug
    Affects Versions: 1.1.2, 1.1.5-SNAPSHOT
            Reporter: Thorbjørn Ravn Andersen


I am using the inputCalendar and have found that it works well when using a JavaBean as the backing bean.  When using an empty Map however it complains that

The given value "30092006" could not be converted to a date.

I invoke with

<t:inputCalendar id="dateexpir" value="#{CommodityLine.dateexpir}" 
renderAsPopup="true" 
popupGotoString="#{msg['depositMainInformation.jsp.popupGotoString']}" 
popupDateFormat="#{msg['depositMainInformation.jsp.dateFormat']}"
popupTodayString="#{msg['depositMainInformation.jsp.popupTodayString']}" />

where the DateFormat is 

depositMainInformation.jsp.dateFormat=ddMMyyyy

and the CommodityLine is initially an empty map.

Digging somewhat around it appears to me that the value is initially set to an empty string, and when it is attempted to store the string "30092006" as a Date it fails as it is a string instead.

 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira