掲示板
Language bundle on a ConfurationAction page?
11年前 に Cameron McBride によって更新されました。
Language bundle on a ConfurationAction page?
Expert 投稿: 269 参加年月日: 11/02/08 最新の投稿
I have a language bundle defined in my portlet.xml file as usual:
I have a content folder with my Language.properties file and all my messages in there.
ALL pages of my portlet work great using the liferay-ui:message tag except for my configuration page. My configuration page is a class that extends ConfigurationAction:
Why does the language bundle not work on configuration pages?
<resource-bundle>content.Language</resource-bundle>
I have a content folder with my Language.properties file and all my messages in there.
ALL pages of my portlet work great using the liferay-ui:message tag except for my configuration page. My configuration page is a class that extends ConfigurationAction:
liferay-portlet.xml: <configuration-action-class>com.my.class.ConfigurationActionImpl</configuration-action-class>
Why does the language bundle not work on configuration pages?
11年前 に Cameron McBride によって更新されました。
RE: Language bundle on a ConfurationAction page?
Expert 投稿: 269 参加年月日: 11/02/08 最新の投稿
I've also tried putting these lines in, which do not work on the config page:
However, on any page that isnt a ConfigurationAction page the "YO2" and "YO3" work great. The "YO1" still does not work.
YO1 <%= LanguageUtil.get(request.getLocale(), "mymessage") %><br>
YO2 <%= LanguageUtil.get(pageContext, "mymessage") %><br>
YO3 <liferay-ui:message key="mymessage" /><br>
However, on any page that isnt a ConfigurationAction page the "YO2" and "YO3" work great. The "YO1" still does not work.