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 this.....this is how > we dynamically change languages at > login....Tapestry 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 Picasso > 04/17/2006 02:50 PM > Please respond to > "Tapestry users" > > > To > Tapestry users > cc > > Subject > Very simple localization > > > > > > > That one should be very simple. > > I want to serve all my application pages in french, regardless of the user > browser setting. > > I've try to overide BaseEgine with a FrenchEngine: > > @Override > public void setLocale(Locale locale) { > System.out.println("setting locale"); > super.setLocale(new Locale("fr", "FR")); > } > > I can see that the setLocale I used when I hit the pages but the pages are > still served according the user browser setting. > > What should I do? > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > --------------------------------- > Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. James Carman, President Carman Consulting, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]