Hello,

I found a solution on my own. Probably someone else could find it
useful:

Define a PhaseListener, which is called on PhaseId.RENDER_RESPONSE.
At the beforePhase you can call the PortalUtil-class of liferay to get
the current user and retrieve the Locale of this user. (I wrapped these
calls to a factory to be more independent in future from Liferay).

Kind regards,

Stephan 

> -----Original Message-----
> From: Strittmatter, Stephan 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 08, 2005 10:02 AM
> To: MyFaces Discussion
> Subject: Using MyFaces as Portlet within Liferay - wrong 
> Locale is used
> 
> Hello together,
> 
> I try to implement a portlet for Lifray based on MyFaces. It has to
> support different languages, which is working fine in the standalone
> webapp-version.
> But changing the web-app to a portlet changing the language does not
> work any more. the portlet does not get the language changed 
> in Liferay.
> The Browser-Language is taken instead.
> 
> Has anybody an idea why?
> 
> Thanks in advance,
> 
> Stephan
> 

Reply via email to