[jboss-cvs] jboss-seam/doc/reference/en/modules ...
Peter Muir
peter at bleepbleep.org.uk
Thu Feb 8 06:59:09 EST 2007
User: pmuir
Date: 07/02/08 06:59:09
Modified: doc/reference/en/modules mail.xml
Log:
Multiple messages
Revision Changes Path
1.12 +14 -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.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- mail.xml 8 Feb 2007 10:10:35 -0000 1.11
+++ mail.xml 8 Feb 2007 11:59:09 -0000 1.12
@@ -118,6 +118,20 @@
</section>
<section>
+ <title>Multiple messages</title>
+ <para>Sometimes however you need to send a slightly different message to each recipient (e.g. a password
+ reset). The best way to do this is to place the whole message inside a <literal><ui:repeat></literal>:</para>
+ <programlisting><ui:repeat value="#{people}" var="p">
+ <m:message>
+ <m:from name="#{person.firstname} #{person.lastname}">#{person.address}</m:from>
+ <m:to name="#{p.firstname}">#{p.address}</m:to>
+ ...
+ </m:message>
+</ui:repeat>
+ </programlisting>
+ </section>
+
+ <section>
<title>Templating</title>
<para>The mail templating example shows that facelets templating 'just works' with the Seam mail tags.</para>
<para>Our <literal>template.xhtml</literal> contains:</para>
More information about the jboss-cvs-commits
mailing list