[jboss-user] [JBoss Seam] - @AutoCreate and create = true does not work
gothmog
do-not-reply at jboss.com
Thu Aug 30 01:28:55 EDT 2007
Hi,
I have two APPLICATION scoped components and one needs to be @In jected with the other, however I get
SEVERE: Error Rendering View[/cgsimulateentry.xhtml]
| org.jboss.seam.RequiredException: In attribute requires non-null value: entrySimulation.exAP
Seam recognizes the components and they are in the right scope as I can see this in the JBoss startup.
17:17:54,968 INFO [Component] Component: entryGate, scope: APPLICATION, type: JAVA_BEAN, class: model.EXAccessPoint
| 17:17:54,976 INFO [Component] Component: entrySimulation, scope: APPLICATION, type: JAVA_BEAN, class: model.EXSimulation
My two components look like this:
@Name("entryGate")
| @Scope(ScopeType.APPLICATION)
| @AutoCreate
| public class EXAccessPoint {
|
| @Logger Log log;
|
| @In EntityManager em;
| ...
|
| @Name("entrySimulation")
| @Scope(ScopeType.APPLICATION)
| public class EXSimulation {
|
| @Logger Log log;
|
| @In EXAccessPoint exAP;
| ...
What have I missed why can't seam auto create the EXAccesPoint class when it needs to be @in-jected into EXSimulation??
Thanks
Troy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079420#4079420
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079420
More information about the jboss-user
mailing list