0 Replies Latest reply on Apr 28, 2008 6:18 PM by jermaioncer

    rich:comboBox

      i have a problem with the "value" in this component.

      my code is:

      <rich:comboBox selectFirstOnUpdate="false"
       defaultLabel="Enter some value">
       <f:selectItems value="#{capitalsBean.capitalsOptions}" />
       </rich:comboBox>
      


      and capitalsOptions is a SelectedItem, where:
      capitalsOptions.add(new SelectItem(td.getId(), td.getDescripcion()))
      where
      value = id is a Integer, and
      label = descripcion is a String.

      but the combobox show me id (value)

      how i can print in the combobox the "label"???

      thanks, very much.