[jboss-user] [JBoss Seam] - Mail & Internationalization
pdepaepe
do-not-reply at jboss.com
Mon Sep 10 05:28:47 EDT 2007
In a simple call:
try {
| Contexts.getEventContext().set("user", user);
| Renderer.instance().render("/mail.xhtml");
| } catch (Exception e) {
| log.info(e);
| }
I would like to know how rendering the default language variables for the messages in my mail templates:
| <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">
| <m:from name="XXX" address="xxxxx at xxxx.org" />
| <m:to name="#{user.username}">#{user.email}</m:to>
| <m:subject><h:outputText value="#{messages.Done}" /></m:subject>
| <m:body>
| <p><h:outputText value="#{user.username}" />,</p>
| <p><h:outputText value="#{messages.Reminder} #{messages.IsFinish}." /></p>
| </m:body>
| </m:message>
messages.Done, messages.Reminder, messages.IsFinish are not interpreted (taken from messages.properties).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082515#4082515
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082515
More information about the jboss-user
mailing list