[jboss-user] [JBoss Seam] - <s:selectItems> label and value

monkeyden do-not-reply at jboss.com
Thu Jan 31 13:02:59 EST 2008


I don't see a way to specify a different label and value when using <s:selectItems>.  I see the value attribute ties in to the list of results.  Functionally everything works fine.  I would just prefer to use region.regionCode as the value and region.regionName as the label.  Am I missing something?  Thanks.



  | <h:selectOneMenu id="regionSelect" value="#{contentAdmin.selectedRegion}" styleClass="formElement">
  |     <s:selectItems var="region" value="#{regions.resultList}" label="#{region.regionCode}"/>
  |     <f:converter converterId="entityConverter" />
  | </h:selectOneMenu>


<framework:entity-query name="pages" ejbql="select p from Page p" order="pageCode"/>
  | <framework:entity-query name="regions" ejbql="select r from Region r" order="regionCode"/>
  | <component name="entityConverter"
  |     	class="org.jboss.seam.ui.converter.EntityConverter">
  |     <property name="entityManager">#{entityManager}</property>
  | </component>

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

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



More information about the jboss-user mailing list