Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Antoine Comble
LanguageImpl in PrimeFaces Portlet
October 19, 2012 5:35 AM
Answer

Antoine Comble

Rank: Regular Member

Posts: 226

Join Date: September 7, 2012

Recent Posts

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 !
Johann Kneringer
RE: LanguageImpl in PrimeFaces Portlet
October 23, 2012 1:42 AM
Answer

Johann Kneringer

Rank: Junior Member

Posts: 40

Join Date: November 10, 2011

Recent Posts

Hey,

can you specify your problem?

Do you want to use internationalization?
Antoine Comble
RE: LanguageImpl in PrimeFaces Portlet
October 23, 2012 1:54 AM
Answer

Antoine Comble

Rank: Regular Member

Posts: 226

Join Date: September 7, 2012

Recent Posts

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.
Neil Griffin
RE: LanguageImpl in PrimeFaces Portlet
October 30, 2012 11:17 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2291

Join Date: July 26, 2005

Recent Posts

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