-
1. Re: h:selectOneRadio and converters
gonorrhea Apr 4, 2009 1:18 AM (in response to reedmd)here's an example from DAllen's book:
<h:selectOneRadio id="gender" value="#{newGolfer.gender}"> <s:convertEnum/> <s:enumItem enumValue="MALE" label="Male"/> <s:enumItem enumValue="FEMALE" label="Female"/> </h:selectOneRadio>
there was nothing else on h:selectOneRadio. I have only used the s:convertEntity with h:selectOneMenu... Maybe somebody else knows the answer.
Also, always post the Seam version (and/or Richfaces version, if applicable) if you think it may be a bug...
-
2. Re: h:selectOneRadio and converters
reedmd Apr 6, 2009 1:51 PM (in response to reedmd)Thanks for the advice. Is there a way to pass it a list such as with s:selectItems? Also does the enum route work for dropdowns as well?
Richfaces: 3.2.2.SR1
Seam: 2.1.1.GA -
3. Re: h:selectOneRadio and converters
wilczarz.wilczarz.gmail.com Apr 7, 2009 12:21 PM (in response to reedmd)s:selectItems works fine with h:selectOneRadio:
<h:selectOneRadio value="#{ bean.someEntity }" > <s:selectItems var="val" value="#{otherBean.entityList}" label="#{val.label}" /> <s:convertEntity /> </h:selectOneRadio>
-
4. Re: h:selectOneRadio and converters
sburgula1 Mar 23, 2010 10:20 PM (in response to reedmd)Does h:selectOneRadio implicitly convert if the value component is Short type and the s:selectItems list is a list of String. I am giving it a list of String(1,2,3,4,5) in the radio buttons and the value selected should be Short.
Could you provide a equivalent example please.
Looking forward to hearing from you soon.
thanks
Sai