hmm, this is the first time that i see this that someone uses 2 url mappings
for the wicket servlet.
This is currently not supported yes. And i don't know if we should because
in wicket 2.0 this changes again because of the filter.
And a filter can only be mapped to one /cs/app/* (but mostly likely you
don't map a filter to anything)
can't you use this:
/app/*
and then have your bookmarkable pages mapped to /en en /cs
so that the outside urls get
/app/en
and
/app/cs
johan
On 11/18/06, jan_bar <[EMAIL PROTECTED]> wrote:
Hi,
my wicket servlet has two different mappings:
<servlet-mapping>
<servlet-name>WicketServlet</servlet-name>
<url-pattern>/cs/app/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>WicketServlet</servlet-name>
<url-pattern>/en/app/*</url-pattern>
</servlet-mapping>
When the session is created, the "en" or "cs" part is used to recognize
language and this new locale is set to new session. Unfortunately wicket
caches urlPrefix in WebRequestCodingStrategy. It means that if the very
first request is on http://domain/context/en/app/something, the urlPrefix
is "/context/en/app" forever. When someone connects on
http://domain/context/cs/app/something, the Locale is set correctly, but
any links created will point to
"/context/en/app/something<http://domain/context/en/app/something>".
I think that WebRequestCodingStrategy should set urlPrefix to null for each
new request.
Thanks, Jan
(wicket 1.2.3)
-------------------------------------------------------------------------
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user