Hi,
I mailed on the user list about my <fmt:message> tags getting shafted
when introducing Magnolia in my already existing webapp. I want to
work out a fix, but thought it best to discuss it first.
The problem is MessagesManager.init() row 150:
context.setAttribute(Config.FMT_LOCALIZATION_CONTEXT,
MessagesManager.DEFAULT_BASENAME);
This sets the basename to
'info.magnolia.module.admininterface.messages' for the whole webapp,
not just Magnolia (magnolia-core having a reference to admininterface
is perhaps untidy in itself).
This could be solved using the same principles as <fmt:bundle>
<fmt:setBundle>. Basically rather than setting the basename for the
whole webapp, we can set the basename for the page being rendered.
Looking at the pages we have statements like:
${this.messages.get("central.bugFeatureRequest")}
The solution I would try to work out would make sure this.messages is
set appropriately just when rendering the admin interface pages,
rather than being something default for the webapp and then remove the
context.setAttribute(). Sounds reasonable?
Martin
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
----------------------------------------------------------------