[jboss-user] [JBoss Seam] - MAIL thanks to templating language

Chloe do-not-reply at jboss.com
Tue Nov 27 10:14:27 EST 2007


Hi !
I use jboss-seam-1.2.1.GA and jboss-4.0.5.GA.

I want to send the message bellow but a can't use "#{mb.firstName} #{mb.lastName}" in <m:from> tag ! Indeed when I use it, I see only the address value of the from tag and not the name value ! But when I put "My team" in the name value of the from tag all works normally !
It's very strange because when I put this information("#{mb.firstName} #{mb.lastName}") in the body of my message, the firstname and the last name is display!


I have an other question on this subject ! Is it possible to hide email addresses !? Because each email of the mailSetcollection is display in an email !
Do you have an idea to help me please ?

Thank you !

The email template :
<m:message 	xmlns="http://www.w3.org/1999/xhtml"
  | 			xmlns:s="http://jboss.com/products/seam/taglib"
  | 			xmlns:ui="http://java.sun.com/jsf/facelets"
  | 			xmlns:f="http://java.sun.com/jsf/core"
  | 			xmlns:m="http://jboss.com/products/seam/mail"
  | 			xmlns:h="http://java.sun.com/jsf/html">
  | 
  |         <m:from name="My Team" address="xxxx at xxx.com"/>
  | 	
  | 	<ui:repeat value="#{homeManager.mailSet}" var="mail">
  | 		<m:to name="#{mail}" address="#{mail}" />
  | 	</ui:repeat>
  | 	<m:subject>My subject!</m:subject>
  | 	
  | 	<m:body>
  | 		<p>
  |   		Hi,
  |   	</p>
  |   	<p>
  |   		I just want to invite you !!
  |   	</p>
  |   	<p>
  |   		 Thanks,
  |  	</p>
  | 	<div>
  | 		<img src="#{mb.picSmall}" style="padding-top:10px;padding-bottom:10px;padding-right:10px;" alt=" "/>
  | 	</div>	
  | 	<h:outputText value="#{mb.firstName} #{mb.lastName}" />
  | 	</m:body>
  | 
  | </m:message>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108111#4108111

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108111



More information about the jboss-user mailing list