[jboss-user] [JBoss Seam] - Re: Injection Problem
smendenh@redhat.com
do-not-reply at jboss.com
Wed Apr 25 13:54:48 EDT 2007
What does contact1 and contact2 refer to? Without seeing the rest of your code it looks like you need to set up roles for the entity:
| @Entity
| @Name("contact")
| @Table(name = "CONTACT")
| @Roles(
| { @Role(name="contact1", scope=EVENT)
| @Role(name="contact2", scope=EVENT)}
| )
| public class Contact {
| ...
| }
|
Alternatively, the method I prefer, you could create a ContactHome which extends EntityHome where you could hold references to Contact contact1, Contact contact2 with the getters and setters. then reference in the form through contactHome.contact1.firstname ect...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040699#4040699
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040699
More information about the jboss-user
mailing list