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


    German Figueroa Newbie

      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}" />

      and capitalsOptions is a SelectedItem, where:
      capitalsOptions.add(new SelectItem(td.getId(), td.getDescripcion()))
      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.