1 Reply Latest reply on May 14, 2007 1:01 PM by Chris Wash

    Mail sending through Seam

    Vedavyas N Rao Newbie

      Hi All,

      I am trying to send a mail by calling the required method in a class which implements ActionHandler. But the Renderer object is not getting injected.

      This is the code i have used.

      public class Mail implements ActionHandler {
       private Renderer renderer;
       public void execute(ExecutionContext executioncontext) throws Exception {
       public void sendmail() {
       try {
       } catch (Exception e) {

      But renderer is not getting assigned. it is always null.

      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.

      What is the problem? Is there any other way to do this?