Foren
LanguageImpl in PrimeFaces Portlet
Antoine Comble, geändert vor 11 Jahren.
LanguageImpl in PrimeFaces Portlet
Regular Member Beiträge: 232 Beitrittsdatum: 07.09.12 Neueste Beiträge
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 !
Johann Kneringer, geändert vor 11 Jahren.
RE: LanguageImpl in PrimeFaces Portlet
Junior Member Beiträge: 42 Beitrittsdatum: 10.11.11 Neueste Beiträge
Hey,
can you specify your problem?
Do you want to use internationalization?
can you specify your problem?
Do you want to use internationalization?
Antoine Comble, geändert vor 11 Jahren.
RE: LanguageImpl in PrimeFaces Portlet (Antwort)
Regular Member Beiträge: 232 Beitrittsdatum: 07.09.12 Neueste Beiträge
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.
Neil Griffin, geändert vor 11 Jahren.
RE: LanguageImpl in PrimeFaces Portlet
Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
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