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

Peter Muir peter at bleepbleep.org.uk
Mon Feb 5 17:32:28 EST 2007


  User: pmuir   
  Date: 07/02/05 17:32:28

  Modified:    examples/mail/view  attachment.xhtml
  Log:
  Finish off attachment support
  
  Revision  Changes    Path
  1.2       +4 -1      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.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- attachment.xhtml	4 Feb 2007 20:58:26 -0000	1.1
  +++ attachment.xhtml	5 Feb 2007 22:32:28 -0000	1.2
  @@ -9,9 +9,12 @@
             <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>
  +           <m:attachment fileName="whyseam.pdf">
              		<ui:include src="/whyseam.xhtml" />
              </m:attachment>
  +           <ui:repeat value="#{people}" var="person">
  +	           <m:attachment value="#{person.photo}" contentType="image/jpeg" fileName="#{person.firstname}_#{person.lastname}.jpg" />
  +           </ui:repeat>
             <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>
  
  
  



More information about the jboss-cvs-commits mailing list