[jboss-user] [JBoss Seam] - Re: Beginner: Bind SelectOneMenu to @onetoone entity object

pgmjsd do-not-reply at jboss.com
Sun Jan 27 11:18:46 EST 2008


"Interista" wrote : "nickarls" wrote : Just use @In on the entityManager...
  | 
  | I tried that, but keep getting:
  | 
  | 01:41:19,656 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
  | org.jboss.seam.RequiredException: @In attribute requires non-null value: categoryController.entityManager

Putting @In on 'entityManager' isn't the whole story.   You need to configure the Seam-managed persistence context in components.xml.   The Seam docos have a bit on how to do that, or you can look some of the Seam examples.

http://docs.jboss.com/seam/latest/reference/en/html/persistence.html#persistence.seam-managed-persistence-contexts

 

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

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



More information about the jboss-user mailing list