I would like to allow the users of my site to choose which language the site
and the content is presented in by kind of prefixing the actual URL with a
virtual subfolder specifying the language. Example:

Let's mount a page:
mount(new IndexedHybridUrlCodingStrategy("/foobar", FooPage.class));

And assume the following user access urls:
http://domain.com/foobar   -> results in page foobar presented in english
http://domain.com/de/foobar   -> results in page foobar presented in german
http://domain.com/fr/foobar   -> results in page foobar presented in french

What I would like to know if:

a) It is possible to implement this without mounting /foobar multiple times
for all possible location (I think in order to get this to work I would have
to overrride WebRequestCodingStrategy.strategyForPath where simply all
mountpoints get iterated and checked for the target URL with
parth.startswith(key)

b) Where to start? I debugged through most of the request cycle code but I'm
still not sure what's the best place to hook into.

Any hint would be appreciated.
-- 
View this message in context: 
http://www.nabble.com/Url-Coding-Strategy-for-choosing-Locale-by-URL-%22Sub-Directory%22-tp15803555p15803555.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to