[jboss-cvs] jboss-seam/doc/reference/en/modules ...
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: doc/reference/en/modules mail.xml
Log:
JBSEAM-1601
Revision Changes Path
1.22 +11 -0 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.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- mail.xml 13 Aug 2007 20:21:03 -0000 1.21
+++ mail.xml 1 Sep 2007 20:34:33 -0000 1.22
@@ -99,6 +99,17 @@
<m:attachment value="#{person.photo}" contentType="image/jpeg" fileName="#{person.firstname}_#{person.lastname}.jpg"/>
</ui:repeat>]]></programlisting>
+ <para>And if you want to display an attached image inline:</para>
+
+ <programlisting><![CDATA[<m:attachment value="#{person.photo}" contentType="image/jpeg" fileName="#{person.firstname}_#{person.lastname}.jpg" status="personPhoto" disposition="inline" />
+<img src="cid:#{personPhoto.contentId}" />]]></programlisting>
+
+ <para>You may be wondering what <literal>cid:#{...}</literal> does. Well, the IETF specified that by
+ putting this as the src for your image, the attachments will be looked at (by <literal>Content-ID</literal>)
+ - magic!</para>
+
+ <para>You must declare the attachment before trying to access the status object.</para>
+
</section>
<section>
More information about the jboss-cvs-commits
mailing list