Foros de discusión
LanguageImpl in PrimeFaces Portlet
Antoine Comble, modificado hace 11 años.
LanguageImpl in PrimeFaces Portlet
Regular Member Mensajes: 232 Fecha de incorporación: 7/09/12 Mensajes recientes
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, modificado hace 11 años.
RE: LanguageImpl in PrimeFaces Portlet
Junior Member Mensajes: 42 Fecha de incorporación: 10/11/11 Mensajes recientes
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, modificado hace 11 años.
RE: LanguageImpl in PrimeFaces Portlet (Respuesta)
Regular Member Mensajes: 232 Fecha de incorporación: 7/09/12 Mensajes recientes
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, modificado hace 11 años.
RE: LanguageImpl in PrimeFaces Portlet
Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
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