[
https://issues.apache.org/jira/browse/TOMAHAWK-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614198#action_12614198
]
Sam Witty commented on TOMAHAWK-3:
----------------------------------
This is still broken in the latest version MyFaces 1.2.3 and TOMAHAWK 1.1.6
The DateConverter interface is silly at best because MyFaces wraps the
supplied converter in a DelegateConverter which does not implement
DateConverter. I am unclear why there is even a need for a DateConverter? What
is the point?
The issue I have is that my Converter returns a Calender object. The component
can not handle that... Not sure why the component can not simply check if the
class is of type Calender and do the right thing? This is a 2006 Major bug. We
are now in 2008. Any chance this can get fixed?
> inputCalendar with CalendarConverter loses value data
> -----------------------------------------------------
>
> Key: TOMAHAWK-3
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-3
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Calendar
> Environment: windows xp pro
> Reporter: Sven Vogt
>
> When I set a Converter for java.util.Calendar to inputCalendar, the value
> will not be rendered.
> <t:inputCalendar id="calendar_1"
> value="#{exampleInputBean.calendar}"
> renderAsPopup="true">
> <f:converter converterId="de.orgaplan.faces.CalendarConverter" />
> </t:inputCalendar>
> Because the HtmlCalendarRenderer throws an IllegalArgumentException and set
> the value to null.
> My Converter is not an Instance of DateConverter.
> Date value;
> try
> {
> // value = RendererUtils.getDateValue(inputCalendar);
> Converter converter = getConverter(inputCalendar);
> if (converter instanceof DateConverter)
> {
> value = ((DateConverter) converter).getAsDate(facesContext,
> component);
> }
> else
> {
> value = RendererUtils.getDateValue(inputCalendar);
> }
> }
> catch (IllegalArgumentException illegalArgumentException)
> {
> value = null;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.