-
1. Re: Richfaces binding/lib problem
nbelaevski Jul 5, 2010 6:00 PM (in response to derkd)1 of 1 people found this helpfulDerk,
UI components should not be bound to EJB beans, use JSF managed beans or another WAR-scoped beans for that.
-
2. Re: Richfaces binding/lib problem
derkd Jul 6, 2010 5:55 AM (in response to nbelaevski)Hi Nick,
Thanks for your answer. So in my EJB project I only have classes which are annotated by @Entity?
How can I exchange data between de EJB and WAR project? Because if I annotate the classes in my WAR with @Name I get errors he can't find the classes. So I can't inject data between the 2 projects. I know that if you want your classes to be Seam components you will need to have the seam.properties in the project. It's now only in the EJB project, should that also be in the WAR project? If so why doesn't JBoss Tools creates this when you create a new project? I use Seam in combination with RichFaces.
Regards,
Derk
-
3. Re: Richfaces binding/lib problem
nbelaevski Jul 6, 2010 8:18 AM (in response to derkd)Yes, put seam.properties into WAR module and bind components there. Inject beans from EJB module into WAR beans or use lookup via Components class.