[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><m:attachment value="#{exampleSpreadsheet}" /></programlisting>
+ <programlisting><m:attachment value="#{numbers}" /></programlisting>
<para> a <literal>byte[]</literal> or a <literal>java.io.InputStream</literal>:</para>
- <programlisting><m:attachment value="#{photo}" contentType="image/jpeg" /></programlisting>
+ <programlisting><m:attachment value="#{person.photo}" contentType="image/png" /></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><ui:repeat></literal>:</para>
- <programlisting><ui:repeat value="#{photos}" var="photo">
- <m:attachment value="#{photo}" contentType="image/jpeg" />
+ <programlisting><ui:repeat value="#{personList}" var="person">
+ <m:attachment value="#{person.photo}" contentType="image/png" />
</ui:repeat></programlisting>
</section>
More information about the jboss-cvs-commits
mailing list