[jboss-user] [JBoss Seam] - Re: Can I mix Session, Entity and regular Java Beans in Seam

petemuir do-not-reply at jboss.com
Mon Dec 18 16:04:29 EST 2006


"PatrickMadden" wrote : @Name("Greeter")
  |   | public class GreeterBean implements Serializable

anonymous wrote :    @In GreeterBean greeter;

Spot the problem? - Seam bijects based on variable name not class, so you've named your variable Greeter but are trying to inject greeter.  N.B. by convention geeter is correct, and Greeter is wrong.  This also assumes that an instance of greeter already exists in a Seam context.  If it doesn't use @In(create=true)

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

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



More information about the jboss-user mailing list