[jboss-cvs] jboss-seam/examples/mail/view ...

Peter Muir peter at bleepbleep.org.uk
Sat Sep 1 16:34:33 EDT 2007


  User: pmuir   
  Date: 07/09/01 16:34:33

  Modified:    examples/mail/view  attachment.xhtml
  Log:
  JBSEAM-1601
  
  Revision  Changes    Path
  1.3       +11 -8     jboss-seam/examples/mail/view/attachment.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: attachment.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/mail/view/attachment.xhtml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- attachment.xhtml	5 Feb 2007 22:32:28 -0000	1.2
  +++ attachment.xhtml	1 Sep 2007 20:34:33 -0000	1.3
  @@ -3,12 +3,12 @@
              xmlns:ui="http://java.sun.com/jsf/facelets"
              xmlns:h="http://java.sun.com/jsf/html">
       
  -          <m:from name="Peter" address="peter at example.com" />
  +          <m:from name="Peter" address="peter at email.tld" />
             <m:to name="#{person.firstname} #{person.lastname}">#{person.address}</m:to>
             <m:subject>Try out Seam!</m:subject>
             <m:attachment value="/WEB-INF/lib/jboss-seam-mail.jar" /> 
              <m:attachment value="#{numbers}" />
  -           <m:attachment value="#{person.photo}" contentType="image/png" fileName="#{person.firstname}_#{person.lastname}.jpg" />
  +          <m:attachment value="#{person.photo}" contentType="image/png" fileName="#{person.firstname}_#{person.lastname}.jpg" status="personPhoto" />
              <m:attachment fileName="whyseam.pdf">
              		<ui:include src="/whyseam.xhtml" />
              </m:attachment>
  @@ -18,5 +18,8 @@
             <m:body>
                 <p><h:outputText value="Dear #{person.firstname}" />,</p>
                 <p>This example email demonstrates how easy it is to add attachments to an email!</p>
  +              <p>We can even display attached images inline:</p>
  +              <img src="cid:#{personPhoto.contentId}" />
  +              <p>The attached pdf was generated by Seam's PDF library</p>
       </m:body>
   </m:message>
  \ No newline at end of file
  
  
  



More information about the jboss-cvs-commits mailing list