This content has been marked as final.
Show 3 replies
-
1. Re: Help for using selectOneMenu
tariqahsan Mar 8, 2009 9:55 PM (in response to tariqahsan)Sorry, here's correct xhtml file content -
<h:selectOneMenu id="actionindicator" value="#{mybean.actionindicator}">
<s:convertEnum />
<s:enumItem enumValue="C" label="C" />
<s:enumItem enumValue="A" label="A" />
<s:enumItem enumValue="D" label="D" />
</h:selectOneMenu> -
2. Re: Help for using selectOneMenu
joblini Mar 8, 2009 10:12 PM (in response to tariqahsan)Does a selectMenu support nesting of enumItem as shown? Shouldn't it be a selectItem rather that an enumItem?
-
3. Re: Help for using selectOneMenu
tariqahsan Mar 8, 2009 10:24 PM (in response to tariqahsan)Was not fully sure if I could use s:enumList. The tutorial has an example of using for selectOneRadio. Thought could use it for selectOneMenu also. Would you have any sample codes especially for the backend java bean? Would something like below with some correction for the xhtml work?
<h:selectOneMenu id="actionindicator" value="#{mybean.list}">
<s:selectItems value="#{mybean.list}" />
<s:convertEnum />
</h:selectOneMenu>
Thanks