2 Replies Latest reply on May 1, 2009 12:36 AM by Matias Santana

    Combobox shows numbers

    Matias  Santana Newbie

      Hi everyone!
      Maybe there is somebody  who knows why is happening this.
      I´ve got this code:


      <s:decorate id="categoriaField" template="layout/edit.xhtml">
           <ui:define name="label">Categoria</ui:define>
                <rich:comboBox value="#{productoHome.instance.categoria}"
                     defaultLabel="Seleccione..." 
                     required="true"
                     directInputSuggestions="true" onchange="save.enable">   
                        <s:selectItems 
                            var="categoria"
                            value="#{categoriaServiceBean.findAll()}" 
                            label="#{categoria.descripcion}" 
                            itemValue="#{categoria}" />
                          <s:convertEntity/>
                   </rich:comboBox>
      
       </s:decorate>


      And the problem is that the combobox is showing me categories but it shows me numbers instead of the description.


      Anyone knows why??
      Thanx in advice!!