0 Replies Latest reply on Jul 11, 2007 1:57 PM by Sunil Subrahmanyam

    s:selectItems question

    Sunil Subrahmanyam Newbie


      I'm using seam 1.2.1 and JBoss AS 4.0.5,

      Here is the selectOneMenu in my page

       <td>Org Level:</td>
       <h:selectOneMenu value = "#{orgEntry.orgLevel}">
       <s:selectItems value="#{orgLevels}" var="orgLevel" label="#{orgLevel.name}" noSelectionLabel="#{orgEntry.orgLevel.name}"/>

      When the page is rendered, the value selected is not the "noSelectionLabel", but the last entry in my orgLevels list. When I click on the drop down, I see the "noSelectionLabel" value as the first entry in the list.

      How do I make the noSelectionLabel as the default selection?