[jboss-cvs] jboss-seam/examples/mail/view ...

Peter Muir peter at bleepbleep.org.uk
Wed Jan 24 16:13:44 EST 2007


  User: pmuir   
  Date: 07/01/24 16:13:44

  Modified:    examples/mail/view   index.xhtml
  Added:       examples/mail/view   rendererExample.xhtml
  Log:
  Update mail example to show sending through API
  
  Revision  Changes    Path
  1.3       +2 -0      jboss-seam/examples/mail/view/index.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: index.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/mail/view/index.xhtml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- index.xhtml	21 Jan 2007 16:13:04 -0000	1.2
  +++ index.xhtml	24 Jan 2007 21:13:44 -0000	1.3
  @@ -30,7 +30,9 @@
   			<h:commandButton action="plainText" value="Send Plain Text Email" />
   	        <h:commandButton action="html" value="Send HTML Email" />
   	        <h:commandButton action="templating" value="Send Templated Email" />
  +	        <h:commandButton action="#{rendererExample.send}" value="Send Email via Seam Component" />
   	    </h:panelGrid>
  +	    <h:messages />
       </h:form>
   </body>
   </html>
  
  
  
  1.1      date: 2007/01/24 21:13:44;  author: pmuir;  state: Exp;jboss-seam/examples/mail/view/rendererExample.xhtml
  
  Index: rendererExample.xhtml
  ===================================================================
  <m:message xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:m="http://jboss.com/products/seam/mail">
    
          <m:from name="Seam" address="do-not-reply at jboss.com" />
          <m:to name="#{person.firstname} #{person.lastname}">#{person.address}</m:to>
          <m:subject>Email sent from a Seam component</m:subject>
          <m:body><p>Dear #{person.firstname},</p>
            
  <p>This email was sent by a Seam component by calling Renderer.instance("/rendererExample.xhtml");.</p>
            
  <p>Regards</p>
            
  <p>JBoss Seam</p></m:body>
  </m:message>
  
  



More information about the jboss-cvs-commits mailing list