[jboss-user] [JBoss Seam] - Re: Can EntityConverter handle different EntityManagers?

pete.muir@jboss.org do-not-reply at jboss.com
Thu Oct 11 07:37:02 EDT 2007


Try

components.xml
<component name="myEntityConverter" class="org.jboss.seam.ui.converter.EntityConverter">
  |    <property name="entityManager">#{myEntityManager}>/property>
  | </component>

facelet
<h:selectOneMenu ...>
  |    <f:converter converterId="myEntityConverter" />
  | 

Of course you could wrap the converter up in a custom tag if you wanted to.

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

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



More information about the jboss-user mailing list