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

Peter Muir peter at bleepbleep.org.uk
Wed Jan 24 17:43:10 EST 2007


  User: pmuir   
  Date: 07/01/24 17:43:10

  Modified:    examples/mail/view       template.xhtml index.xhtml
  Added:       examples/mail/view       simple.xhtml plain.xhtml
  Removed:     examples/mail/view       rendererExample.xhtml
                        plainText.xhtml
  Log:
  Update docs with example, keep examples/mail in sync, make example use API send normally
  
  Revision  Changes    Path
  1.3       +1 -0      jboss-seam/examples/mail/view/template.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: template.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/mail/view/template.xhtml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- template.xhtml	24 Jan 2007 01:55:08 -0000	1.2
  +++ template.xhtml	24 Jan 2007 22:43:10 -0000	1.3
  @@ -28,6 +28,7 @@
        <ui:insert name="successMessage">
            <html>
                <body>
  +             	 <p>This email was sent directly from the view without invoking a bean - just link to a page which contains an &lt;m:message&gt; tag!</p>
                    <p>The email has been successfully sent. <s:link view="/index.xhtml">Click here</s:link> to return to the index.</p>
                </body>
            </html>
  
  
  
  1.4       +3 -3      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.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- index.xhtml	24 Jan 2007 21:13:44 -0000	1.3
  +++ index.xhtml	24 Jan 2007 22:43:10 -0000	1.4
  @@ -27,10 +27,10 @@
   		    <h:inputText value="#{person.address}" rerquired="true"/>
   		</h:panelGrid>
   		<h:panelGrid>
  -			<h:commandButton action="plainText" value="Send Plain Text Email" />
  -	        <h:commandButton action="html" value="Send HTML Email" />
  +		<h:commandButton action="#{mailExample.send}" value="Send a simple email" />
  +			<h:commandButton action="#{mailExample.sendPlain}" value="Send Plain Text Email" />
  +	        <h:commandButton action="#{mailExample.sendHtml}" 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>
  
  
  
  1.1      date: 2007/01/24 22:43:10;  author: pmuir;  state: Exp;jboss-seam/examples/mail/view/simple.xhtml
  
  Index: simple.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"
                 xmlns:h="http://java.sun.com/jsf/html">
    
          <m:from name="Peter" address="peter at example.com" />
          <m:to name="#{person.firstname} #{person.lastname}">#{person.address}</m:to>
          <m:subject>Try out Seam!</m:subject>
          <m:body>
          	<p><h:outputText value="Dear #{person.firstname}" />,</p>
  			<p>You can try out Seam by visiting <a href="http://labs.jboss.com/jbossseam">http://labs.jboss.com/jbossseam</a>.</p>
  			<p>Regards</p>
  			<p>Peter</p>
  		</m:body>
  </m:message>
  
  
  1.1      date: 2007/01/24 22:43:10;  author: pmuir;  state: Exp;jboss-seam/examples/mail/view/plain.xhtml
  
  Index: plain.xhtml
  ===================================================================
  <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:s="http://jboss.com/products/seam/taglib"
                 xmlns:m="http://jboss.com/products/seam/mail">
        
      <m:message>
          <m:from name="Seam" address="do-not-reply at jboss.com" />
          <m:to name="#{person.firstname} #{person.lastname}">#{person.address}</m:to>
          <m:subject>Plain text email sent by Seam</m:subject>
          <m:body type="plain">Dear #{person.firstname},
            
  This is a simple, plain text, email.
            
  Regards
            
  JBoss Seam Mail</m:body>
      </m:message>
       
      <html>
          <body>
              <p>The email has been successfully sent. <s:link view="/index.xhtml">Click here</s:link> to return to the index.</p>
          </body>
      </html>
       
  </ui:composition>
  
  



More information about the jboss-cvs-commits mailing list