13 August 2009

Using custom property file in Seam email template

This was a challenge to track down, and I thought it might help others. For my current project, I'd included an <f:loadBundle/> in the XHTML Facelets' template, thinking it would be available to all pages. Well, the Seam email template, which uses the <m:message/> tag, isn't using the template, and thus it couldn't see the properties file.

Solution was simple: Throw in the same <f:loadBundle/> into the Seam email file, just below the <m:message/> opening tag.

No comments: