You need an <f:selectItem> or an <f:selectItems> Tag between your 
<h:selectOneRadio>

you need something like that

<h:selectOneRadio value="#{bean.id}">
        <f:selectItem itemValue="#{person.id}"/>
</h:selectOneRadio>

regards


-----Ursprüngliche Nachricht-----
Von: Caroline Jen [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 28. September 2005 15:56
An: MyFaces Discussion; stefanom
Betreff: Re: selectOneRadio in myfaces 1.1


Hi Stefano,

     Is this the error message you are getting when
use valueChangeListener in the <h:selectOneRadio> tag:

"java.lang.IllegalArgumentException: Conversion Error
setting value ''{0}'' for ''{1}''."

     Please help me to make sure that I ran into the
same problem.  Here is my selectOneRadio code:

<h:selectOneRadio
value="#{dataManagementBean.dataTransferTypeItems[0]}"
layout="pageDirection" onchange="submit()"
immediate="true"
valueChangeListener="#{dataManagementBean.showRecordList}">
</h:selectOneRadio>

--Caroline


--- "stefanom (sent by Nabble.com)" <[EMAIL PROTECTED]>
wrote:

> 
> With myfaces version 1.09 I can use a Boolean method
> in h:selectOneRadio value tag and the component
> converts the Boolean value in String automatically.
> 
> In version 1.1 this conversion doesn't work and I
> need to use another method for the conversion.
> 
> 
> Thank you
> 
> Stefano
> 
> 
> --
> Sent from the MyFaces - Users forum at Nabble.com:
>
http://www.nabble.com/selectOneRadio-in-myfaces-1.1-t354851.html#a982138
> 



                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to