You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bruno Aranda (JIRA)" <my...@incubator.apache.org> on 2005/06/21 22:37:17 UTC

[jira] Commented: (MYFACES-285) selectOneMenu throwing wrong conversion error

    [ http://issues.apache.org/jira/browse/MYFACES-285?page=comments#action_12314172 ] 

Bruno Aranda commented on MYFACES-285:
--------------------------------------

I've tried to reproduce this issue with the latest SVN and I haven't found any bug. Everything works as expected. The value is a String and when you submit the form you recurrenceType gets update with the selected itemValue. I think that another thing is the reason of your exception. Marcio, have you tried to isolate the selectOneMenu in a jsp and simplify your bean so you only have the recurrenceType String (getters and setters) and a test action? If you continue then with this exception, try to download a nightly binary from the myfaces web site, and try again,

Regards,

Bruno

> selectOneMenu throwing wrong conversion error
> ---------------------------------------------
>
>          Key: MYFACES-285
>          URL: http://issues.apache.org/jira/browse/MYFACES-285
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: Windows XP
>     Reporter: Marcio Aguiar Ribeiro

>
> I have a selectOneMenu like this:
> <h:selectOneMenu  id="marcio" value="#{appoinmentBean.recurrenceType}">
>               <h:messages/>
>               <f:selectItem itemValue="0" itemLabel="Dia(s)"/>
>               <f:selectItem itemValue="1" itemLabel="Semana(s)"/>
>               <f:selectItem itemValue="2" itemLabel="Mês(ses)"/>
>               <f:selectItem itemValue="3" itemLabel="Ano(s)"/>
> </h:selectOneMenu>
> and at the bean i have a String recurrenceType, and the proper setter and getter for it.. But when i submit the form it gives me a conversion error message.
> I've already tried to change the type of the attribute to Object, Collection, List and etc, but there's no solution. When i remove the value attribute from the selectOneMenu, the form is submited, except for the select value, of course.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira