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

quilleashm do-not-reply at jboss.com
Sun Apr 8 11:21:01 EDT 2007


Assuming Parent and Child entities where Child has a reference to parent.


  | <h:selectOneMenu value="#{child.parent}">
  |   <s:selectItems value="#{allParents}" var="parent" label="#{parent.display}"/>
  | </h:selectOneMenu>
  | 

Tweak names as necessary.  You'll need some converter in conjunction with this to convert an entity to a string and back.  Look at the seam entity converter for this, I've not used it myself.

HTH.

Mike.


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

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



More information about the jboss-user mailing list