struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: Preparable interface & getLocale()
Date Fri, 11 May 2007 12:27:13 GMT
It should be available, if it isn't it is probably a bug.

musachy

On 5/11/07, Torsten Römer <torsten.roemer@luniks.net> wrote:
>
> I noticed that when calling getLocale() from prepare(), it seems to
> return the system default locale instead of the locale set by the
> request_locale request parameter, which is the case when calling it from
> execute().
>
> Is that supposed to be like that or could this be a bug?
>
> I think the correct locale is needed also in prepare() in order to
> populate controls with internationalized content. As a workaround I get
> the locale directly from the request_locale parameter.
>
> Torsten
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message