Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Antoine Comble
LanguageImpl in PrimeFaces Portlet
19. Oktober 2012 05:35
Antwort

Antoine Comble

Rang: Regular Member

Nachrichten: 226

Eintrittsdatum: 7. September 2012

Neue 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 !
Johann Kneringer
RE: LanguageImpl in PrimeFaces Portlet
23. Oktober 2012 01:42
Antwort

Johann Kneringer

Rang: Junior Member

Nachrichten: 42

Eintrittsdatum: 10. November 2011

Neue Beiträge

Hey,

can you specify your problem?

Do you want to use internationalization?
Antoine Comble
RE: LanguageImpl in PrimeFaces Portlet
23. Oktober 2012 01:54
Antwort

Antoine Comble

Rang: Regular Member

Nachrichten: 226

Eintrittsdatum: 7. September 2012

Neue 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.
Neil Griffin
RE: LanguageImpl in PrimeFaces Portlet
30. Oktober 2012 11:17
Antwort

Neil Griffin

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 2336

Eintrittsdatum: 26. Juli 2005

Neue 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