Thanks for your help! You helped us locate the source of the problem,
though it's totally unrelated to wicket.

We misunderstood how locales work.

We were testing for:

  locale == Locale.JAPANESE

When we should have been testing for:

  locale.getLanguage().equals( "ja" )


Cheers,
Dave




On Tue, 2007-03-20 at 12:56 +0100, Johan Compagner wrote:
> i don't see a getDefaultLocale on ApplicationSettings (which version
> do you use of wicket?)
> 
> But setting a (default) locale  like getSession().setLocale() then you
> will override the user locale
> with something that the server specifies.
> 
> But the question is what doesn't work?
> What do you do with getSession().getLocale() (which should be what the
> browser tells us)
> 
> johan
> 
> On 3/20/07, David Leangen <[EMAIL PROTECTED]> wrote:
>         
>         
>         Yes, you're right. Our problem occurs when we try to do some
>         locale-related stuff, i.e.:
>         
>                 Locale defaultLocale =
>         Application.get().getApplicationSettings().getDefaultLocale();
>                 getSession().setLocale(); 
>         
>         
>         We are not getting the correct result.
>         
>         So, either this is not the right way to get the locale, or
>         there's some
>         kind of timing issue, here...
>         
>         We've tried getSession().getLocale(), too, but that didn't
>         work, either. 
>         
>         
>         Cheers,
>         Dave
>         
>         
>         
>         
>         On Tue, 2007-03-20 at 09:26 +0100, Johan Compagner wrote:
>         > that should happen automatically already.
>         >
>         > johan
>         >
>         >
>         > On 3/20/07, David Leangen < [EMAIL PROTECTED]> wrote:
>         >
>         >         I can't seem to find any info on this, and I can't
>         recall
>         >         either how
>         >         this is supposed to work. 
>         >
>         >         I want the locale of my app to match the client
>         browser's
>         >         default locale
>         >         (unless changed explicitly, of course).
>         >
>         >
>         >         What do I need to do to achieve this? 
>         >
>         >
>         >         Thanks!
>         >
>         >
>         >
>         >
>         >
>         
> -------------------------------------------------------------------------
>         >         Take Surveys. Earn Cash. Influence the Future of IT 
>         >         Join SourceForge.net's Techsay panel and you'll get
>         the chance
>         >         to share your
>         >         opinions on IT & business topics through brief
>         surveys-and
>         >         earn cash 
>         >
>         
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>         >         _______________________________________________ 
>         >         Wicket-user mailing list
>         >         Wicket-user@lists.sourceforge.net
>         >
>         https://lists.sourceforge.net/lists/listinfo/wicket-user
>         >
>         
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to