4 Replies Latest reply on Sep 21, 2009 8:52 AM by nimo stephan

    comboBox converter strange behaviour

    nimo stephan Master

      I use comboBox with seams entity converter:

      <rich:comboBox value="#{myEntity}" converter="org.jboss.seam.ui.EntityConverter">
       <s:selectItems value="#{myEntities}" var="_o" label="#{_o.name}"/>
       </rich:comboBox>


      It renders the #{_o.name} not correctly. Instead of the name, the items in comboBox contains of a list of numbers:

      157,158,159,...


      very strange!

      Using a common selectOneMenu:

      <h:selectOneMenu value="#{myEntity}">
       <s:selectItems value="#{myEntities}" var="_o" label="#{_o.name}"/>
       <s:convertEntity/>
       </h:selectOneMenu>


      all works as expected - {_o.name} contains items of names.

      So what is wrong with rich:comboBox ??