掲示板
LanguageImpl in PrimeFaces Portlet
11年前 に Antoine Comble によって更新されました。
LanguageImpl in PrimeFaces Portlet
Regular Member 投稿: 232 参加年月日: 12/09/07 最新の投稿
Hi,
I develop a portlet with PrimeFaces.
I want to call a method in LanguageUtil directly in my xhtml file but i don't see how doing that.
If you have the solution, please help me !
I develop a portlet with PrimeFaces.
I want to call a method in LanguageUtil directly in my xhtml file but i don't see how doing that.
If you have the solution, please help me !
11年前 に Johann Kneringer によって更新されました。
RE: LanguageImpl in PrimeFaces Portlet
Junior Member 投稿: 42 参加年月日: 11/11/10 最新の投稿
Hey,
can you specify your problem?
Do you want to use internationalization?
can you specify your problem?
Do you want to use internationalization?
11年前 に Antoine Comble によって更新されました。
RE: LanguageImpl in PrimeFaces Portlet (回答)
Regular Member 投稿: 232 参加年月日: 12/09/07 最新の投稿
Hi,
I've found a solution for my problem.
My portlets are based on PrimeFaces. In the portlet-bridge jar there is LanguageManagedBean.class doing what i want.
I've just override the get method to do my own treatment.
Thanks for your reply.
I've found a solution for my problem.
My portlets are based on PrimeFaces. In the portlet-bridge jar there is LanguageManagedBean.class doing what i want.
I've just override the get method to do my own treatment.
Thanks for your reply.
11年前 に Neil Griffin によって更新されました。
RE: LanguageImpl in PrimeFaces Portlet
Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Hi Antoine,
Actually the LanguageManagedBean is probably going to be deprecated in the future.
The recommended way to do this is to add the liferay-faces-portal dependency to your portlet project, and then use the #{i18n} EL keyword in your views. For more information, please refer to my blog post.
Neil
Actually the LanguageManagedBean is probably going to be deprecated in the future.
The recommended way to do this is to add the liferay-faces-portal dependency to your portlet project, and then use the #{i18n} EL keyword in your views. For more information, please refer to my blog post.
Neil