[seam-issues] [JBoss JIRA] Commented: (SEAMSERVLET-15) conversions for Date, Time, Calendar and Enum in HTTP state producers
Dan Allen (JIRA)
jira-events at lists.jboss.org
Wed Dec 22 02:17:17 EST 2010
[ https://issues.jboss.org/browse/SEAMSERVLET-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571897#comment-12571897 ]
Dan Allen commented on SEAMSERVLET-15:
--------------------------------------
Enum was simple. That already has a valueOf method.
java.sql.Date and java.sql.Time already have valueOf, so they work already.
Date and Calendar are tricky because it requires a format. I'm going to close this w/ basic support, then see if we can improve on it either by integrating w/ Seam International, or allowing the use of a format pattern annotation at the injection point.
> conversions for Date, Time, Calendar and Enum in HTTP state producers
> ---------------------------------------------------------------------
>
> Key: SEAMSERVLET-15
> URL: https://issues.jboss.org/browse/SEAMSERVLET-15
> Project: Seam Servlet
> Issue Type: Feature Request
> Components: Producers
> Affects Versions: 3.0.0.Alpha1
> Reporter: Dan Allen
> Fix For: 3.0.0.Alpha3
>
>
> @RequestParam, @HeaderParam and @CookieParam currently only support conversation if the type has a valueOf method. To align with JAX-RS, also support conversion for the following types:
> - Date
> - Time
> - Calendar
> - Enum
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list