4 Replies Latest reply on Sep 10, 2009 10:06 AM by Daniel Wachter

    Resource bundle not found in email (m:message)?

    Giorgi Javrishvili Newbie
      Hi all,

      I'm facing a strange problem:
      I have following:
      `
      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <m:message
           charset="UTF-8"
           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="Meinfahrtenbuchonline" address="info@meinfahrtenbuchonline.de" />
          <m:to name="#{resetUser.firstName} #{resetUser.lastName}">#{resetUser.email}</m:to>
          <m:subject>#{messages['label.tto.PasswordReset']}</m:subject>
         
          <m:body>
              <p>
                   <h:outputText value="Sehr geehrte" />
                   &#160;
                   <h:outputText value="#{resetUser.username}," />
              </p>
              <p>
                   Ihr kennwort wurde zurueckgesetzt. Das neue Kennwort lautet:
                   <br/><br/>
                   <b>#{resetUser.rawPassword}</b>
              </p>
              <p>Mit feundlichen Gruessen,</p>
              <p>Meinfahrtenbuchonline</p>
          </m:body>
      </m:message>
      `

      and unfortunately `#{messages['label.tto.PasswordReset']}` is not functioning. It shows always label.tto.PasswordReset as it couldn't find a value of this key. But I'm using this key on other pages and it works fine there.

      Here is a piece of Java code:
      `
      ...
      renderer.render("/email/resetPasswordNotification.xhtml");
      ...
      `

      Did anybody have a same problem? Does it need some extra configuration?

      I'm using jboss-seam-2.1.1.GA and jboss-4.2.3.GA-jdk6.

      Many thanks in advance.

      giorgi