• Post Reply Bookmark Topic Watch Topic
  • New Topic

PhaseListener: before or after which phase should I set the locale?  RSS feed

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I use restfaces an I have UrLs such as mydomain.com/fr/book/etc
where /fr/ is the desired locale. I have tried retrieving the locale string from the URL and setting the locale from a PhaseListener before the renderResponse phase but it does not work i.e. when I change the locale in the address bar to /en/book/etc it will not change the locale. Any clue?
Thanks in advance,
JUlien.

Here is the phase listener:



Here is the managed bean (I actually use spring):


The problem I get is that the jsp page still display today's date in french...
Julien.

I meant "sculpture" instead of "book"
[ July 09, 2008: Message edited by: Julien Martin ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!