[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>&lt;ui:repeat&gt;</literal>:</para>
  +	    	<programlisting>&lt;ui:repeat value=&quot;#{people}&quot; var=&quot;p&quot;&gt;
  +    &lt;m:message&gt;
  +        &lt;m:from name=&quot;#{person.firstname} #{person.lastname}&quot;&gt;#{person.address}&lt;/m:from&gt;
  +        &lt;m:to name=&quot;#{p.firstname}&quot;&gt;#{p.address}&lt;/m:to&gt;
  +            ...
  +    &lt;/m:message&gt;
  +&lt;/ui:repeat&gt;
  +			</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