[jboss-user] [JBoss Seam] - EntityConverter

petemuir do-not-reply at jboss.com
Sat Mar 10 14:15:40 EST 2007


I've added the EntityConverter from the wiki to CVS (with significant refactoring). Now, all you should need to do is:

<h:selectOneMenu value="#{person.continent}">
  |    <s:selectItems value="#{continents.resultList}" var="continent" label="#{continent.name}" />
  |    <s:convertEntity />
  | </h:selectOneMenu>

for any dropdown which uses entities.  It would be great if y'all could test this :)

The upshot of the refactoring is that it now works ootb for select manys and composite (embedded) ids.  The example and reference guide show the use of this control.

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

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



More information about the jboss-user mailing list