2 Replies Latest reply on Sep 13, 2007 5:32 AM by Pete Muir

    Mail & Internationalization

    Pierre De Paepe Newbie

      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@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).