2 Replies Latest reply on Aug 10, 2007 9:47 PM by fhh

    selectItems & noSelectionLabel

    hager hager Newbie

      I'm using selectItems and noSelectionLabel,and i have some problems

      this my code

      <h:selectOneMenu id="selectOneSituationDeFamille" value="#{collaborateurHome.instance.situationDeFamille}" >
      <s:selectItems value="#{collaborateurHome.situationFamilleKeys}"
       noSelectionLabel="Select Situation"/>

      when i choose the selectItem "Select Situation", and i submit the form, I want to insert in the database the value "no situation Selected"? How can I do?
      I'm using seam 1.2.1
      collaborateurHome.situationFamilleKeys is a Set that contains the Keys of the MAP.
      thank you