myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Ivankovits (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Updated: (MYFACES-389) allow inputCalendar to use other date libraries e.g joda
Date Thu, 04 Aug 2005 10:06:37 GMT
     [ http://issues.apache.org/jira/browse/MYFACES-389?page=all ]

Mario Ivankovits updated MYFACES-389:
-------------------------------------

    Attachment: calendar_tomahawk.diff

the 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
>  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


Mime
View raw message