5 Replies Latest reply on Aug 20, 2007 12:05 PM by Pete Muir

    selectItems & selectOneMenu

    hager hager Newbie

      Hello,
      I'm using selectItems and I have a problem,
      this my code

      <h:selectOneMenu id="selectOneSituationDeFamille" value="#{collaborateurHome.instance.situationDeFamille}">
      <s:selectItems value="#{collaborateurHome.situationFamilleKeys}"
       var="situationFamilleIterator" label="#{collaborateurHome.situationFamilleMap[situationFamilleIterator]}"
       noSelectionLabel="Pas de situation"/>
       </h:selectOneMenu>
      
      


      when i choose an item from the list, and i submit the form, a null value will always be insert in the database, but when i remove the attribute noSelectionLabel="Pas de situation" , i obtain the correct value.
      but i have to use the noSelectionLabel attribute.

      what can I do?
      thanks.