Hi Behi,

I have not tested Liferay 4.1 jet. We use 3.6 currently, sorry I can not
help on this :-/ 
But if you found some more about this, please add it also to the WIKI.

BTW, I am out of office the next 3 weeks (vacation) and have no access
to any computers there...

Regards,

Stephan 

> -----Original Message-----
> From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 24, 2006 1:29 AM
> To: MyFaces Discussion
> Subject: Re: Locale problem with MyFaces Portlet for Liferay
> 
> Hi Stephan,
> 
> I looked at the wiki entry and it was very clear and straightforward
> but unfortunately I have not been able to solve the locale problem
> yet. When I don't add the portlet-ejb.jar to the WEB-INF/lib directory
> of my portlet .war file it throws a ClassNotFoundException. When I
> added the jar file I encountered another exception.
> 
> I'm using Liferay 4.1/Tomcat and I guess as Liferay's JAR files are no
> longer in the lib/ext of Tomcat I cannot use them inside my own Web
> app.
> 
> Have you been able to apply your workaround to Liferay 4.1 as well?
> 
> Sincerely yours,
> Behi
> 
> On 8/23/06, Strittmatter, Stephan 
> <[EMAIL PROTECTED]> wrote:
> > Hi Behi,
> >
> > I created an WIKI entry for that. Please have a look at:
> > http://wiki.apache.org/myfaces/Liferay
> > I am using only Liferay and do not know if this is a 
> Liferay specific
> > issue.
> >
> > Regards,
> >
> > Stephan
> >
> > > -----Original Message-----
> > > From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, August 22, 2006 8:35 PM
> > > To: MyFaces Discussion
> > > Subject: Re: Locale problem with MyFaces Portlet for Liferay
> > >
> > > Hi Stephan,
> > >
> > > Thanks for the replay. Could you please provide me a 
> little bit more
> > > information? Should I overload something in my Portlet 
> class? I guess
> > > VIIBPortalUser is a custom class for your application, I 
> don't know
> > > how can I workaround the locale problem within my 
> application. I would
> > > be thankful if you provide me a little bit more help.
> > >
> > > BTW - Is this locale problem also prevalent in other 
> Portals such as
> > > Jetspeed, JBoss Portal, etc. or it's a Liferay specific bug?
> > >
> > > Thanks in advance,
> > > Behi
> > >
> > > On 8/22/06, Strittmatter, Stephan
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hi Behi,
> > > >
> > > > I had this problem also. Lieray has iths own User where the
> > > language is
> > > > stored (also the timezone).
> > > > This is not updated within the respones of MyFaces.
> > > >
> > > > Here a snipped which could help you:
> > > >
> > > >   import com.liferay.portal.model.User;
> > > >   import com.liferay.portal.util.PortalUtil;
> > > >
> > > >   public MyUser getUser(final RenderRequest request) {
> > > >     MyUser user;
> > > >
> > > >     try {
> > > >       final User liferayUser = PortalUtil.getUser(request);
> > > >       user =
> > > >           new VIIBPortalUser(liferayUser.getFirstName(),
> > > >               liferayUser.getLastName());
> > > >       user.setLocale(liferayUser.getLocale());
> > > >       user.setTimeZone(liferayUser.getTimeZone());
> > > >     }
> > > >     catch (final Exception e) {
> > > >       user = null;
> > > >     }
> > > >
> > > >
> > > >     return user;
> > > >   }
> > > >
> > > > Regards,
> > > >
> > > > Stephan
> > > >
> > > > > -----Original Message-----
> > > > > From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]
> > > > > Sent: Tuesday, August 22, 2006 3:51 PM
> > > > > To: users@myfaces.apache.org
> > > > > Subject: Re: Locale problem with MyFaces Portlet for Liferay
> > > > >
> > > > > Oh I forgot to ask my question: does anybody know what's
> > > wrong with
> > > > > this portlet?
> > > > >
> > > > > Regards,
> > > > > Behi
> > > > >
> > > > > On 8/22/06, Behrang Saeedzadeh <[EMAIL PROTECTED]> wrote:
> > > > > > Hi guys,
> > > > > >
> > > > > > I have written a simple blank JSF portlet for Liferay.
> > > It supports 2
> > > > > > locales: "en" and "de". But when I change the locale of the
> > > > > user, the
> > > > > > portlet doesn't fetch the appropriate locale and instead
> > > > > only fetches
> > > > > > the default locale.
> > > > > >
> > > > > > The whole portlet with its war file ready to be deployed
> > > > > can be access
> > > > > > from
> > > > >
> > > 
> http://my.opera.com/behrangsa/homes/projects/BlankLiferayPortlet.zip
> > > > > >
> > > > > > Thanks in advance,
> > > > > > Behi
> > > > > >
> > > > > > --
> > > > > > "We can only see a short distance ahead,
> > > > > > but we can see plenty there
> > > > > > that needs to be done." - Alan Turing
> > > > > >
> > > > > > "Science is a differential equation. Religion
> > > > > > is a boundary condition" - Alan Turing
> > > > > >
> > > > > > Behrang Saeedzadeh
> > > > > > http://www.jroller.com/page/behrangsa
> > > > > > http://my.opera.com/behrangsa
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > "We can only see a short distance ahead,
> > > > > but we can see plenty there
> > > > > that needs to be done." - Alan Turing
> > > > >
> > > > > "Science is a differential equation. Religion
> > > > > is a boundary condition" - Alan Turing
> > > > >
> > > > > Behrang Saeedzadeh
> > > > > http://www.jroller.com/page/behrangsa
> > > > > http://my.opera.com/behrangsa
> > > > >
> > > >
> > >
> > >
> > > --
> > > "We can only see a short distance ahead,
> > > but we can see plenty there
> > > that needs to be done." - Alan Turing
> > >
> > > "Science is a differential equation. Religion
> > > is a boundary condition" - Alan Turing
> > >
> > > Behrang Saeedzadeh
> > > http://www.jroller.com/page/behrangsa
> > > http://my.opera.com/behrangsa
> > >
> >
> 
> 
> -- 
> "We can only see a short distance ahead,
> but we can see plenty there
> that needs to be done." - Alan Turing
> 
> "Science is a differential equation. Religion
> is a boundary condition" - Alan Turing
> 
> Behrang Saeedzadeh
> http://www.jroller.com/page/behrangsa
> http://my.opera.com/behrangsa
> 

Reply via email to