0 Replies Latest reply on Jan 20, 2009 7:52 AM by cfoushee.carey.foushee.cc

    Application Scope Renderer

    cfoushee.carey.foushee.cc

      Is there a way to create a renderer in an application scope component?  I'm just trying to send an email message using seam.  I know I can use JavaMail of course but just began this task and was hoping to send it the same way I am sending my other mail messages via seam.


      The renderer is null when its used.  When I use the Events I get invalid state exception.



      @Startup
      @Scope(ScopeType.APPLICATION)
      @Name("triggerManager")
      public class TriggerManager {
           
           @Logger private Log log;
           
           @In(create=true)    
           private Renderer renderer;
      
      log.info("Its withing the warning time");
      //Events.instance().raiseEvent("triggerWarning", u);
      renderer.render("/email/warning.xhtml");