This content has been marked as final.
Show 1 reply
-
1. Re: Mail sending through Seam
cwash May 14, 2007 1:01 PM (in response to vedavyas)
But if i call it as a seam component i.e if the class does not implement ActionHandler and i call the method, #{mail.sendmail} from a .xhtml file directly Renderer object gets assigned.
I might be wrong, but I think you need to have a component in order to inject a component. That should explain the behavior you're seeing.
If you want to do it the first way you've outlined, you might try getting a handle to it using http://docs.jboss.com/seam/1.2.0.PATCH1/api/org/jboss/seam/core/Renderer.html#instance() and see if that works.