2 Replies Latest reply on Apr 5, 2007 11:57 AM by Ben Catherall

    Seam mail not rendering alternative plain

    Ben Catherall Newbie

      Hi,

      I've got a simple seam-mail test (just xhtml page) like so:

      <m:message>
       <m:from name="Test" address="test@blahblah.me.uk" />
       <m:to name="Blah">test@blahblah.me.uk</m:to>
       <m:subject>Test</m:subject>
       <m:body>
       <f:facet name="alternative">Plain text</f:facet>
       <html>
       <body>
       <p>Rich text</p>
       <hr/>
       <p style="color: red;">Red text</p>
       </body>
       </html>
       </m:body>
      </m:message>
      


      The alternative body part is in the email, but there is no text. UIBody seems to call MailComponent.encode on the alternative facet, but JSF.renderChildren only renders the children of the facet rather than the facet itself?

      Cheers - Ben