[jboss-cvs] jboss-seam/doc/reference/en/modules ...
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: doc/reference/en/modules mail.xml
Log:
Finish off attachment support
Revision Changes Path
1.10 +5 -5 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.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- mail.xml 4 Feb 2007 20:58:27 -0000 1.9
+++ mail.xml 5 Feb 2007 22:32:28 -0000 1.10
@@ -83,7 +83,7 @@
<para>And it gets even better, you can attach a Seam generated PDF, or any standard JSF view, just by wrapping a
<literal><m:attachment></literal> around the normal tags you would use:</para>
- <programlisting><m:attachment>
+ <programlisting><m:attachment fileName="tiny.pdf">
<p:document>
A very tiny PDF
</p:document>
@@ -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="#{personList}" var="person">
- <m:attachment value="#{person.photo}" contentType="image/png" />
+ <programlisting><ui:repeat value="#{people}" var="person">
+ <m:attachment value="#{person.photo}" contentType="image/jpeg" fileName="#{person.firstname}_#{person.lastname}.jpg"/>
</ui:repeat></programlisting>
</section>
@@ -394,13 +394,13 @@
<listitem>
<para>
If this tag contains a <literal><p:document></literal> tag, the document described will be
- generated and attached to the email.
+ generated and attached to the email. A <literal>fileName</literal> should be specfied.
</para>
</listitem>
<listitem>
<para>
If this tag contains other JSF tags a HTML document will be generated from them
- and attached to the email.
+ and attached to the email. A <literal>fileName</literal> should be specfied.
</para>
</listitem>
</itemizedlist>
More information about the jboss-cvs-commits
mailing list