2 Replies Latest reply on Apr 5, 2011 11:56 AM by angela leon

    dropdownmenu duplicated value

    angela leon Newbie

      Hi everybody!
      My issue is that i got one duplicated value in my drop down list when I render my ProjectEdit page(to modify and not create for the firt time)
      I know it's logic that I have this issue cause I'm using selectItem and selectItems tags in the same time, this is my jsf selectOneMenu part:

      <s:decorate id="projetField" template="layout/edit.xhtml">
                  <ui:define name="label">Projet</ui:define>
                         <h:selectOneMenu value="#{selectedProject}" id="selectedProject" style=" width : 239px;">
                            <f:selectItem itemLabel="#{versionHome.instance.projet.nomProjet}" itemValue="#{"/>
                              <s:selectItems value="#{projectToTrack}" 
                              <a:support event="onchange" action="#{projectAction.test()}" reRender="projetField" />

      the thing is that i added the selectItem tag cause I needed that the default value of the dropdownmenu to be the value of my bean.

      So please can u suggest me something to solve this problem!
      Thanks in advance