RE: Very simple localization

2006-04-18 Thread Oscar Picasso
ent: Monday, April 17, 2006 8:15 PM To: Tapestry users Subject: Re: Very simple localization I am trying to understand how to implement a solution based on WebRequestServicerFilter. I don't see where I could set the locale. I though of using the service method parameter(s) but none of the

RE: Very simple localization

2006-04-17 Thread James Carman
he locales sent by the browser match what you have listed, it will return the first one as the default (fr in your case). -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 8:52 PM To: 'Tapestry users' Subject: RE: Very simple localization

RE: Very simple localization

2006-04-17 Thread James Carman
Nevermind the filter. Try this in your application file... -Original Message- From: Oscar Picasso [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 8:15 PM To: Tapestry users Subject: Re: Very simple localization I am trying to understand how to implement a solution based on

Re: Very simple localization

2006-04-17 Thread Oscar Picasso
I am trying to understand how to implement a solution based on WebRequestServicerFilter. I don't see where I could set the locale. I though of using the service method parameter(s) but none of these object have a setLocale method. I don't see either any of these parameters that could provide me

Re: Very simple localization

2006-04-17 Thread James Carman
Sure. Here's an example which does open-session-in-view (hibernate stuff): http://www.carmanconsulting.com/svn/public/tapernate/trunk/src/java/com/carmanconsulting/tapernate/filter/OpenSessionInViewFilter.java And, here's how you configure it in your hivemodule.xml file: http://www.carmanconsul

Re: Very simple localization

2006-04-17 Thread Oscar Picasso
Not sure about what you mean by WebRequestFilter. How to use it? Where to find? Is it something I need to implement? Extends? Maybe some code would help me to understand what you are talking about. James Carman <[EMAIL PROTECTED]> wrote: Can you try using a WebRequestFilter? You can inject th

Re: Very simple localization

2006-04-17 Thread James Carman
Can you try using a WebRequestFilter? You can inject the cycle into your filter and set the locale there. > My case is somewhat different. > > 1- I use Tapestry 4. > 2- All the pages need to be served in french, not only specific pages like > login. > > [EMAIL PROTECTED] wrote: Try something like

Re: Very simple localization

2006-04-17 Thread Oscar Picasso
My case is somewhat different. 1- I use Tapestry 4. 2- All the pages need to be served in french, not only specific pages like login. [EMAIL PROTECTED] wrote: Try something like this.this is how we dynamically change languages at loginTapestry 3.0.3... Locale selectedLocale = new Loca

Re: Very simple localization

2006-04-17 Thread Mike . Barber
Try something like this.this is how we dynamically change languages at loginTapestry 3.0.3... Locale selectedLocale = new Locale("fr"); cycle.getEngine().setLocale(selectedLocale); // not sure what this does... cycle.cleanup(); cycle.activate("Login"); // reload page - Mike Oscar