4 Replies Latest reply on Mar 5, 2009 9:57 AM by Nick Belaevski

    Combobox not submitted values that not contains in suggestio

    Andrei no Newbie

      Hi all.
      I have problem with combobox, when I input value to combobox that not contains in suggestions list I can successfully submit this value only first time. When I load page second time and immediately press submit button, richcombobox submit null value.


      For example, open this page,

      <ui:composition >
       <rich:messages/>
       <h:form>
       <rich:comboBox id="region" width="260px"
       value="#{comboboxBean.address.region}">
       <f:selectItems value="#{comboboxBean.regions}"/>
       </rich:comboBox>
       <p/>
       <h:commandButton value="submit"/>
       <p/>
       #{comboboxBean.address.region}
       </h:form>
      </ui:composition>


      comboboxBean - bean in session scope


      input to "region" value not from suggestion list end press "submit". After that you will see in bottom of page inputed region, if you immediately press "submit" second time, "region" will be null. Why?

      I use JBoss 4.2.2 and richfaces 3.2.2.SR1.

      I try richfaces 3.3.0.GA, all work fine, but I can not use this version, because when I migrate my project to 3.2.2.SR1 I get this error - http://www.jboss.org/index.html?module=bb&op=viewtopic&t=148913&start=0&postdays=postDays&postorder=postOrder&highlight=highlight