[jboss-user] [JBoss Seam] - Re: Drop Down Lists using Facelets?

waynebagguley do-not-reply at jboss.com
Mon Apr 9 02:36:39 EDT 2007


If you are using Seam v1.2.1.GA or above you can use this instead:


  | <h:selectOneMenu value="#{itemManager.itemChosen}" style="width:300px">
  |     <s:selectItems value="#{itemManager.itemList}" var="item"
  |                            label="#{item.code} #{item.name}" />
  |     <s:convertEntity />
  | </h:selectOneMenu>
  | 

This negates the need for a custom converter implementation as long as:


  The 'item' is an Entity bean
  Seam manages the persistence context
  The equals method of the entity bean returns true if it matches the primary key fields of the comparing bean




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

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



More information about the jboss-user mailing list