0 Replies Latest reply on Jun 18, 2011 3:55 AM by basharf

    Issue with rich:comboBox suggestionValues

    basharf

      Hello all

       

      There is an issue with <rich:comboBox suggestionValues

       

      I have this:

       

       

      <rich:comboBox suggestionValues="#{nationalityTableBean.capitalsNames}"

                               directInputSuggestions="true" 

                               defaultLabel="Enter some value">

       

          <f:selectItems value="#{nationalityTableBean.capitalsNames}" />

       

      </rich:comboBox>

       

      and in the bean ...

       

       

      List<SelectItem> capitalsNames = new ArrayList<SelectItem>();

       

      capitalsNames.add(new SelectItem("xxx","yyy"));

       

      but what appears inside the combobox:

       

      is :            

      javax.faces.model.SelectItem@18eff3c

      and

      xxx

       

      !!!

       

      see image attached ..

       

      Please help !!

       

      Thanks  a  lot