This content has been marked as final.
Show 3 replies
-
1. Re: Injection vs. Component.getInstance()
cbensemann Jul 29, 2010 3:51 PM (in response to daxxy)Hi,
I assume your revisionListener isn't a seam component (i.e. its not annotated with @Name). Seam is only able to inject objects into classes that are managed by seam. Also injection will not work on any class marked with @BypassInterceptors annotation. In these cases you can use one of the org.jboss.seam.Component.getInstance() methods to get hold of your seam objects.
Craig
-
2. Re: Injection vs. Component.getInstance()
daxxy Aug 2, 2010 9:05 AM (in response to daxxy)Same problem even if I make it a seam component.
-
3. Re: Injection vs. Component.getInstance()
nraf Jan 19, 2011 6:40 PM (in response to daxxy)I'm having a similar issue. I've registered an event listener (using Events.instance().raiseASynchronousEvent(...)') and am trying to get some Seam components using Component.getInstance(). The objects are coming back but all their values are either 0 or null.