2 Replies Latest reply on May 5, 2011 1:45 PM by Elpyaz Yasarla

    noSelectionLabel issue with selectOneMenu

    Piotr Salski Newbie

      I have issue with noSelectionLabel. In my xhtml page I have


      <h:selectOneMenu 
             converter="#{reservation.converter}">
              <s:selectItems  value="#{reservation.locationListMap}" />         
       </h:selectOneMenu>



      I get


      <select size="1" name="doctorForm:j_id14">
         <option value="Gdańsk">Gdańsk</option>
         <option value="Kraków">Kraków</option>
         <option value="Lębork">Lębork</option>
         <option value="Poznań">Poznań</option>
         <option value="W-wa">W-wa</option>
         <option value="kkk">kkk</option>
         <option value="Łebień">Łebień</option>
      </select>
      


      and this is OK.
      The problem I have when I want to add noSelectionLabel


      <h:selectOneMenu 
             converter="#{reservation.converter}">
              <s:selectItems  value="#{reservation.locationListMap}" 
                     noSelectionLabel="Select ..." hideNoSelectionLabel="true" />        
       </h:selectOneMenu>



      i get only noSelectionLabel without other selection to choose


      <select size="1" name="doctorForm:j_id14">
         <option selected="selected" value="org.jboss.seam.ui.NoSelectionConverter.noSelectionValue">Select ...</option>
      </select>
      



      How can I add to the list label Select ... which will do nothing?