留言板

How to add message bundles on the configuration screen of a portlet?

Bin Zhu,修改在12 年前。

How to add message bundles on the configuration screen of a portlet?

New Member 帖子: 3 加入日期: 10-5-18 最近的帖子
Hi,

Currently I'm facing a problem of the message bundles: In my portlet, I have enabled the Liferay configuration using "ConfigurationActionImpl" class with the "configuration.jsp" file just like the standard way. Now I'm trying to add message bundles on this configuration screen page for the labels and messages, I tried several ways, but never got my keys converted to the real messages in my message bundle file. I'm using Liferay 6.0EE SP2. Anyone has an idea how I can add message bundles on the configuration screen page? I know if I create a hook, add my Language.properties file and use "<liferay-ui:message>" tag, it will work, but I really don't want to create another hook only for some portlet's message bundles.

Thanks,
Bin
thumbnail
Ravi Kumar Gupta,修改在12 年前。

RE: How to add message bundles on the configuration screen of a portlet?

Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子
Can you please attach your portlet here? Are you not using resource bundle tag in portlet.xml
<resource-bundle>content.Language</resource-bundle>


That will ensure that your messages are loaded and are available.