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