[jboss-user] [JBoss Seam] - s:selectItems question

sunil.su do-not-reply at jboss.com
Wed Jul 11 13:57:59 EDT 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063135#4063135

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063135



More information about the jboss-user mailing list