フォーラム

ホーム » Liferay Faces » Liferay Faces - English

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Antoine Comble
LanguageImpl in PrimeFaces Portlet
2012/10/19 5:35
答え

Antoine Comble

ランク: Regular Member

投稿: 221

参加年月日: 2012/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 !
Johann Kneringer
RE: LanguageImpl in PrimeFaces Portlet
2012/10/23 1:42
答え

Johann Kneringer

ランク: Junior Member

投稿: 40

参加年月日: 2011/11/10

最近の投稿

Hey,

can you specify your problem?

Do you want to use internationalization?
Antoine Comble
RE: LanguageImpl in PrimeFaces Portlet
2012/10/23 1:54
答え

Antoine Comble

ランク: Regular Member

投稿: 221

参加年月日: 2012/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.
Neil Griffin
RE: LanguageImpl in PrimeFaces Portlet
2012/10/30 11:17
答え

Neil Griffin

LIFERAY STAFF

ランク: Liferay Legend

投稿: 2224

参加年月日: 2005/07/26

最近の投稿

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