-
1. Re: Logger is null in JavaBean
Nicklas Karlsson Jun 12, 2008 7:42 AM (in response to Mounir Bakkali)And log is imported as
import org.jboss.seam.log.Log;
?
-
2. Re: Logger is null in JavaBean
Mounir Bakkali Jun 13, 2008 4:46 AM (in response to Mounir Bakkali)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 Friedrich Jun 13, 2008 9:20 AM (in response to Mounir Bakkali)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
Tomasz Wilczynski Aug 29, 2008 11:52 AM (in response to Mounir Bakkali)Is it possible to use injection in a component annotated @BypassInterceptors (in my case, a JSF @Converter) ?
-
5. Re: Logger is null in JavaBean
Bernard Labno Aug 29, 2008 11:56 AM (in response to Mounir Bakkali)No way because it is the interceptor that injects all the stuff.
-
6. Re: Logger is null in JavaBean
Guillermo Ortiz Apr 2, 2009 12:07 PM (in response to Mounir Bakkali)Did you manage to do it? I have the same problem.
-
7. Re: Logger is null in JavaBean
Mounir Bakkali Apr 2, 2009 7:01 PM (in response to Mounir Bakkali)What version of Seam and JBoss/Java are you using?
I believe this should have been fixed by now.