Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use restfaces an I have UrLs such as
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,

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...

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