Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

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

scott.stark@jboss.org

2007-07-11


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
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.