[jboss-cvs] jboss-seam/doc/reference/en/modules ...

Peter Muir peter at bleepbleep.org.uk
Sun Feb 4 15:58:27 EST 2007


  User: pmuir   
  Date: 07/02/04 15:58:27

  Modified:    doc/reference/en/modules  mail.xml
  Log:
  Add attachments to example
  
  Revision  Changes    Path
  1.9       +4 -4      jboss-seam/doc/reference/en/modules/mail.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: mail.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/mail.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- mail.xml	4 Feb 2007 18:14:57 -0000	1.8
  +++ mail.xml	4 Feb 2007 20:58:27 -0000	1.9
  @@ -71,11 +71,11 @@
      		
      		<para>You could also attach a <literal>java.io.File</literal>, a <literal>java.net.URL</literal>:</para>
      		
  -   		<programlisting>&lt;m:attachment value=&quot;#{exampleSpreadsheet}&quot; /&gt;</programlisting>
  +   		<programlisting>&lt;m:attachment value=&quot;#{numbers}&quot; /&gt;</programlisting>
      		
      		<para> a <literal>byte[]</literal> or a <literal>java.io.InputStream</literal>:</para>
      		
  -   		<programlisting>&lt;m:attachment value=&quot;#{photo}&quot; contentType=&quot;image/jpeg&quot; /&gt;</programlisting>
  +   		<programlisting>&lt;m:attachment value=&quot;#{person.photo}&quot; contentType=&quot;image/png&quot; /&gt;</programlisting>
      		
      		<para>You'll notice that for a <literal>byte[]</literal> and a <literal>java.io.InputStream</literal> you need to specify the MIME type
      		of the attachment (as that information is not carried as part of the file).</para>
  @@ -92,8 +92,8 @@
   		<para>If you had a set of files you wanted to attach (for example a set of pictures loaded from a database) you can just
   		use a  <literal>&lt;ui:repeat&gt;</literal>:</para>
   		
  -		<programlisting>&lt;ui:repeat value=&quot;#{photos}&quot; var=&quot;photo&quot;&gt;
  -    &lt;m:attachment value=&quot;#{photo}&quot; contentType=&quot;image/jpeg&quot; /&gt;
  +		<programlisting>&lt;ui:repeat value=&quot;#{personList}&quot; var=&quot;person&quot;&gt;
  +    &lt;m:attachment value=&quot;#{person.photo}&quot; contentType=&quot;image/png&quot; /&gt;
   &lt;/ui:repeat&gt;</programlisting>
      		
      	</section>
  
  
  



More information about the jboss-cvs-commits mailing list