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

    s:selectItems question

    Sunil Subrahmanyam Newbie

      Hi,

      I'm using seam 1.2.1 and JBoss AS 4.0.5,

      Here is the selectOneMenu in my page

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


      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?

      Thanks.