2 Replies Latest reply on Sep 18, 2008 10:58 AM by iborraz

    Problem in combobox passing the value to the ManagerBean

    iborraz

      Hello,

      I have a problem with the combobox component in the pass of the value to the ManagerBean.

      This is my code:

      <label><h:outputText value="#{msgapp.fincas_contactos2}"/></label>
      
      <rich:comboBox id="contactoSuggestion" value="#{fincaBean.nombreApellidoContacto}"
      
       suggestionValues="#{fincaBean.contactNombreApellidoList}"/>
      
      <a4j:commandButton reRender="contacts" action="#{fincaBean.asociarContacto}"
      
       value="Seleccionar" ajaxSingle="true"/>
      


      When the page loads, I introduce a letter in the field, the suggestion works perfectly and I select one of the suggested options.
      But when I push the commandButton before, in the first line of the "fincaBean.asociarContacto" method where I have a breakpoint, the attribute "fincaBean.nombreApellidoContacto" that supposedly contains the option I select in the combobox, is NULL.

      Thanks for your help,

      Ignacio.