[ http://issues.apache.org/jira/browse/MYFACES-389?page=all ]
Martin Marinschek closed MYFACES-389:
-------------------------------------
Resolution: Fixed
thanks to Mario Ivankovits for this patch
> allow inputCalendar to use other date libraries e.g joda
> --------------------------------------------------------
>
> Key: MYFACES-389
> URL: http://issues.apache.org/jira/browse/MYFACES-389
> Project: MyFaces
> Type: Improvement
> Components: Tomahawk
> Versions: Nightly Build
> Reporter: Mario Ivankovits
> Assignee: Martin Marinschek
> Attachments: calendar_share.diff, calendar_tomahawk.diff
>
> This patch allows us to use other date libraries with inputCalendar as long
> as the date library knows how to convert itself to a java.util.date.
> So while this is not the best of all possible solutions its the one with a
> minimum of code changes.
> The main changes are in HtmlCalendarRenderer:
> *) introduced a new interface (inner interface) DateConverter with one
> additional method: getAsDate
> *) if the passed in converter is instanceof DateConverter this method will be
> used to get the value-object as java.util.date
> With these changes I managed to create a converter by wrapping the default
> (CalendarDateTimeConverter) converter and convert from/to date/joda-dateTime
--
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