6 Replies Latest reply on Sep 22, 2007 2:09 AM by Luis Fernandez

    Value not a valid option

    Luis Fernandez Newbie

      Hi everybody.
      I've been using Richfaces, and let me tell you that I'm really happy with them...it's a superb way to do things.
      But I'm having this little problem that I don't know how to fix, I've been trying for two days and nothing.
      I'm using RichFaces 3.1.0 with myfaces 1.1.5.
      When I use a a4j:commandButton or form, and there is a selectOneMenu inside the form I always get this error message:
      Value is not a valid option.



      Here is my code
      ===
      <h:panelGroup >
      <h:selectOneMenu id="materia_input" value="#{ClientBackingBean.type}" >
      <f:selectItems value="#{ClientBackingBean.typesItems}" />
      <f:selectItem id="test" itemLabel="test" itemValue="3"/>
      </h:selectOneMenu>
      <rich:message errorClass="error" for="materia_input" />
      </h:panelGroup>
      ...

      =====

      I even tried with a test selectItem but still doesn't work. I made some tests and it seems that the value of the selectOneMenu is always null. Any suggestions? Thank you folks.