-
1. Re: Logger is null in JavaBean
nickarls Jun 12, 2008 7:42 AM (in response to mbakkali)And log is imported as
import org.jboss.seam.log.Log;
?
-
2. Re: Logger is null in JavaBean
mbakkali Jun 13, 2008 4:46 AM (in response to mbakkali)yes the same way I do it with EJB.
Is@Logger org.jboss.seam.log.Log log
supposed to work
with JavaBeans? -
3. Re: Logger is null in JavaBean
stephen Jun 13, 2008 9:20 AM (in response to mbakkali)Yes it is supposed to work for JavaBeans.
For me, in fact, it really does work.(For entity beans it only works if you declare the log field static .)
So: Does injection work on that EmailUtils bean of your in general?
How is the method that should use the log field called?
Maybe yours is a scenario where Seam interceptors do not apply. -
4. Re: Logger is null in JavaBean
wilczarz.wilczarz.gmail.com Aug 29, 2008 11:52 AM (in response to mbakkali)Is it possible to use injection in a component annotated @BypassInterceptors (in my case, a JSF @Converter) ?
-
5. Re: Logger is null in JavaBean
blabno Aug 29, 2008 11:56 AM (in response to mbakkali)No way because it is the interceptor that injects all the stuff.
-
6. Re: Logger is null in JavaBean
konstt2000 Apr 2, 2009 12:07 PM (in response to mbakkali)Did you manage to do it? I have the same problem.
-
7. Re: Logger is null in JavaBean
mbakkali Apr 2, 2009 7:01 PM (in response to mbakkali)What version of Seam and JBoss/Java are you using?
I believe this should have been fixed by now.