[richfaces-issues] [JBoss JIRA] Updated: (RF-1471) Support non default date types for Calendar component

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Fri Nov 30 12:26:46 EST 2007


     [ http://jira.jboss.com/jira/browse/RF-1471?page=all ]

Nick Belaevski updated RF-1471:
-------------------------------

    Fix Version/s: 3.2.0
         Assignee: Alexej Kushunin

> Support non default date types for Calendar component
> -----------------------------------------------------
>
>                 Key: RF-1471
>                 URL: http://jira.jboss.com/jira/browse/RF-1471
>             Project: RichFaces
>          Issue Type: Feature Request
>    Affects Versions: 3.1.2
>            Reporter: Bryan Brouckaert
>         Assigned To: Alexej Kushunin
>             Fix For: 3.2.0
>
>
> The current implementation of the Calendar component only supports java.util.Date, java.util.Calendar and java.lang.String as valid types for the component's value.  There are many other date types in  the Java world.  There is the very useful org.joda.time.DateMidnight from joda-time and the javax.xml.datatype.XMLGregorianCalendar that is part of JavaEE.
> Supporting all possible date types is impossible, but it is possible to fall back on the string representation of the object via custom converters.
> In the case of the XMLGregorianCalendar class, the following section in the faces-config.xml should be taken into account:
>    <converter>
>         <converter-for-class>javax.xml.datatype.XMLGregorianCalendar</converter-for-class>
>         <converter-class>be.cin.mycarenet.portal.converter.XMLGregorianCalendarConverter</converter-class>
>     </converter>

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

        



More information about the richfaces-issues mailing list