5 Replies Latest reply on Aug 26, 2008 2:23 PM by Malte Wiskott

    Problems with richfaces combobox

    Anatol Mayen Newbie
      Hi,

      I want to show a combo box that is populated by a method that returns a list.

      On the view side I have the following:

      <h:selectOneMenu id="hospitalSelect" value="#{donator.hospital}" tabindex="4" required="true">
           <s:selectItems value="#{hospitals}" var="h" label="#{h.name}" itemValue="#{h}" noSelectionLabel="Bitte auswählen..." hideNoSelectionLabel="true"/>
           <s:convertEntity/>
      </h:selectOneMenu>


      This works fine!

      If I want to do the same via the richfaces comboBox (rich:comboBox) it does not work fine anymore:

      <rich:comboBox value="#{donator.hospital}" tabindex="4" required="true">
           <s:selectItems value="#{hospitals}" var="h" label="#{h.name}" noSelectionLabel="Bitte auswählen..."/>
           <s:convertEntity/>
      </rich:comboBox>


      It only shows numbers as the value for the combobox items.
      Am I missing something or might this be a bug and if it is does it come from
      richfaces or seam?


      Thanks!