0 Replies Latest reply on Mar 29, 2012 9:13 AM by giant2

    howto: combobox

    giant2

      Hi!

      I have a java Object Person formed by:

      Identifier

      Name

      Surname

      Age

      Sex

      ...

      I have a bean called visionBean with a method (called "people") answering with the list of Person.

       

      I need now a rich:combobox that has as label "the surname concat the name"; the value must be "the identifier".

      In addiction to this I need a "special label" with label="All person" and value="all".

       

      I tryed in this manner, but it doesn't go.

      <rich:comboBox valueChangeListener="#{visionBean.people}">

                                  <f:selectItem itemLabel="All person" itemValue="all" />

                                  <f:selectItems itemLabel="#{visionBean.people.surname}" itemValue="#{visionBean.people.identifier}" /-->

      </rich:comboBox>

       

      How can I do this?