[
http://jira.jboss.com/jira/browse/JBSEAM-2045?page=all ]
Dan Allen updated JBSEAM-2045:
------------------------------
Attachment: JBSEAM-2045-v1.txt
Uploading patch to add EnumConverter.
There is only one caveat with this converter. Enum is a generic converter but the
converter look-up relies on hard types. Therefore, the type has to be consulted to
determine if it is an Enum. If so, the Enum converter is returned explicitly. If someone
with magic generic skills knows a more transparent way, feel free to advise. I feel this
gets the job done, though.
support Enum properties for component configuration
---------------------------------------------------
Key: JBSEAM-2045
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2045
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Affects Versions: 2.0.0.CR1
Reporter: Dan Allen
Assigned To: Dan Allen
Priority: Minor
Fix For: 2.0.1.GA
Attachments: JBSEAM-2045-v1.txt
Original Estimate: 5 minutes
Remaining Estimate: 5 minutes
Currently, it is not possible to assign the value of a Enum property using the component
configuration mechanism (components.xml or *.component.xml). Enums are very easy to
support since Java 5+ has a built-in mechanism for translating strings into Enums. This
support can be added by registering an EnumConverter in Conversions. It works much the
same way as the JSF enum 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