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

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


I'm likely misunderstanding it's usage.  It now seems as though the value of the component becomes an instance of the Entity, for example:

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

public Region getSelectedRegion() {
  |     return selectedRegion;
  | }
  | public void setSelectedRegion(Region selectedRegion) {
  |     this.selectedRegion = selectedRegion;
  | }

Is this true?  I was attempting to use the PK of the entity (a String).

Thanks

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

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



More information about the jboss-user mailing list