[
http://jira.jboss.com/jira/browse/JBSEAM-574?page=comments#action_12348473 ]
Norman Richards commented on JBSEAM-574:
----------------------------------------
It looks like we'll look something like this:
<h:selectOneMenu id="radioList"
layout="lineDirection"
value="#{etest.myVal}">
<s:convertEnum />
<s:enumItem enumValue="ONE" label="yi"/>
<s:enumItem enumValue="TWO" label="er" />
<s:enumItem enumValue="THREE" label="san"/>
<s:enumItem enumValue="FOUR" label="si"/>
</h:selectOneMenu>
There's no direct need for s:selectOneMenu and s:selectOneRadio. s:convertEnum
doesn't need a type. We can infer a type from the valueBinding. If there turns out
to be cases where we can't, we can add enumClass there to provide the type.
s:convertEnum is only necessary to register a converterId. Both s:convertEnum and
s:enumItem can be used independently of the other, and they should work with any tags the
use select items. (need to verify by testing with icefaces)
I've implemented the above, minus the taglib for JSP compatibility. It looks good and
can probably go in 1.1.0
s:convertEnum
-------------
Key: JBSEAM-574
URL:
http://jira.jboss.com/jira/browse/JBSEAM-574
Project: JBoss Seam
Issue Type: Feature Request
Reporter: Gavin King
Assigned To: Norman Richards
Fix For: 1.1.1.GA
<s:selectOneMenu>
<s:convertEnum enumClass="org.jboss.seam.eg.DayOfWeek"/>
<s:selectItem value="MONDAY label="Monday"/>
<s:selectItem value="TUESDAY" label="Tuesday"/>
<s:selectItem value="WEDNESDAY" label="Wednesday"/>
...
</s:selectOneMenu>
--
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