This content has been marked as final.
Show 2 replies
-
1. Re: Tag <s:link> does not render in <m:message> (Seam 2.2)
herberson Jul 21, 2010 4:29 PM (in response to jackalope)Try add reference to
xmlns:s="http://jboss.com/products/seam/taglib"
on root xhtml tag, because most of email examples don't have that on their root xhtml tag.Using
simple.xhtml
example file, you may have something like this:<m:message xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://jboss.com/products/seam/mail" xmlns:h="http://java.sun.com/jsf/html" xmlns:s="http://jboss.com/products/seam/taglib"> <m:from name="Peter" address="peter@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://www.seamframework.org">http://www.seamframework.org</a>.</p> <p>Regards</p> <p>Peter</p> </m:body> </m:message>
-
2. Re: Tag <s:link> does not render in <m:message> (Seam 2.2)
shavo26 Jul 21, 2010 8:29 PM (in response to jackalope)Like herberson said ben, if you want to place a link in your mail template then use:
<a href="http://www.seamframework.org">http://www.seamframework.org</a>
<s:link> is used in your seam application for rendering a view id or invoking an action during apply request values phase or invoke application phase.
Examples:
<s:link view="/attachment.xhtml" value="Add more attachments" /> <s:link id="viewInquiryPDF" value="Inquiry PDF" action="#{inquiry.serveInquiryPDF}"/>