JMesa Internacionalization

67 views
Skip to first unread message

Elías Manchón López

unread,
Jul 10, 2012, 11:41:39 AM7/10/12
to JMesa
Hello Folks,

I'm trying switch between different language. I'm using the jmesa api
to renderer my tables, Spanish is the language that is showed ever. I
have printed the locale before and after of use the jmesa code to show
the table, and it is well configured, but the locale of jmesa is "es".
I have used the next sentence to force the locale:

tableFacade.getWebContext().setLocale(new Locale("en"));

But it is showed in spanish again.

Can somebody help me, please?.

Thanks in advance

Elías Manchón López

unread,
Jul 11, 2012, 6:30:12 AM7/11/12
to jm...@googlegroups.com
I have tryied the next thing:

I have uncompress the jar and I have copied the properties file to my i18n folder. I have configured my web.xml with the next sentences:

<context-param>
          <param-name>jmesaMessagesLocation</param-name>
              <param-value>
                  WEB-INF/i18n/jmesaResourceBundle
              </param-value>
    </context-param>

But the messages appear in spanish. Could it be a bug?

Thanks

Elías Manchón López

unread,
Jul 11, 2012, 12:07:26 PM7/11/12
to jm...@googlegroups.com
The problem is the ResourceBundle caching. It returns the same value all times, I have tryied disable this cache using clearCache(ClassLoader) of ResourceBundle but it doesn't work.
Reply all
Reply to author
Forward
0 new messages