0 Replies Latest reply on Apr 25, 2013 2:05 PM by ginni machamer

    <m:cc> not populated?

    ginni machamer Newbie

      Hi All,

       

      I have a method using the renderer with a very simple .xhtml page like so:

       

      <m:message xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:m="http://jboss.com/products/seam/mail"
                  xmlns:h="http://java.sun.com/jsf/html"            
                                    xmlns:ui="http://java.sun.com/jsf/facelets"
                                    xmlns:c="http://java.sun.com/jstl/core"
                  xmlns:f="http://java.sun.com/jsf/core">
          <m:header name="X-Sent-From" value="Seam" />
      
      
                <m:to name="#{notification.toAddress}">#{notification.toAddress}</m:to>
          <m:from name="#{notification.fromName}" address="#{notification.fromAddress}"/>
          <m:cc>#{notification.ccAddress}</m:cc> 
          <m:subject>#{notification.subject}</m:subject>
        
          <m:body>
                    <html>
                              <body>
                                                 <ui:include src="/notifications/notification.xhtml"/>
                                       </body>
                             </html>
          </m:body>
      </m:message>
      

       

      As I step through the debugger, I am able to see that my notification object .ccAddress attribute is properly populated with an email address. The message is sent successfully. However, the received message has no CopyTo value, whatsoever. The SendTo is set just as I saw in the debugger.

       

      Am I missing something really obvious?


      My sendNotification method is sending the fully assembled notification object as I am able to see in the debugger. Here's a snippet from the method.

       



      DelegatingFacesContext.setCurrentInstance(null);


      Renderer renderer = (Renderer) Component.getInstance(Renderer.class);


      Contexts.getSessionContext().set("notification", notification);


      Contexts.getSessionContext().set("attachment", attachment);





      //this.notification = notification;


      this.attachment = attachment;


      type.visitRenderer(attachment, renderer);

       

       

       

      Thanks in advance for any ideas.

      Ginni