Done
https://issues.apache.org/jira/browse/WICKET-2533
Cheers
Per
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Olivier Bourgeois schrieb:
Well, you can't change the behaviour of ServletRequest.getLocale() unless
you want to patch your servlet container :)
But you make me think it would be great in the Servlet API to have something
like setAcceptedLocales(Enumeration e) and let the servlet container do th
Well, you can't change the behaviour of ServletRequest.getLocale() unless
you want to patch your servlet container :)
But you make me think it would be great in the Servlet API to have something
like setAcceptedLocales(Enumeration e) and let the servlet container do the
work of matching the browse
Hi Olivier,
you wrote exactly what i did. But if you check the extraction of locale
from request
to provide it in session, you can see that only first accepted language
is evaluated and used if not-null.
But if you assume that first accpeted language is CHINESE and second is
FRENCH and the
app
Ho well, I didn't understood correctly your question, sorry.
Have you tried tho use a custom WebSession ?
- in your WebApplication class overload the newSession method :
@Override
public Session newSession(Request request, Response response) {
return new YourCustomSession(this, r
Hi Olivier
And the overload of getLocale() would'nt work ?
I don't see how it could solve my problem. What i try is to filter the
locales assignable to session.
It will be assigned in Application.newSession(Request, Response) by
usage of the Accepted-Langauge
value in header of response. Th
2009/10/16 Per Newgro
> Hi Olivier,
>
> isn't mod_jk a bit heavyweight for this little usecase?
>
I don't know your case, for mine, every project I worked on already had a
mod_jk. And it is a common pattern with J2EE development : simply because
when you have static resources to serve on a high
Hi Olivier,
isn't mod_jk a bit heavyweight for this little usecase?
I like the locale usage of wicket. It is like magic and i don't have to
worry about it.
All i want to add to my application is the check for a supported locale
on session startup.
But thanks anyway.
Per
---
If you are using Apache + Mod-JK in front of your webapp, you can use
mod_rewrite features to rewrite the HTTP headers and force the accepted
language field to a value your application supports.
Otherwise you can simply create a class that extends WebPage, then override
the getLocale() method and
Hi,
after solving my problem with testing session locale filtering in
thread "Wickettester change locale of request" i found a new problem.
Assume your client browser accepts CHINA - locale by default (first)
and ENGLISH as second. Your application supports FRENCH and
ENGLISH locale. The system
10 matches
Mail list logo