[
https://issues.apache.org/jira/browse/TOMAHAWK-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764783#action_12764783
]
Gangadhar commented on TOMAHAWK-3:
----------------------------------
Hi Lieonard,
Can you please how could you solve this issue? can u give full component here?
Thanks & Regards,
Gangadhar
> 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
> Assignee: Leonardo Uribe
> Fix For: 1.1.9
>
>
> 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.