What's the cleanest way to set a user's locale based on the domainname of the URL of the request in 1.5?
https://cwiki.apache.org/WICKET/wicket-and-localized-urls.html This guide relies on overriding newRequestCycleProcessor(). Would a proper 1.5 analog be to add a custom AbstractRequestCycleListener like this? RequestCycleListenerCollection listeners = new RequestCycleListenerCollection(); application.getRequestCycleListeners().add(listeners); listeners.add(new AbstractRequestCycleListener() { public void onBeginRequest(RequestCycle cycle) { Session.get().setLocale(...); } }); BTW, I've been asked to use the domainname for the locale (vs the context/servlet path), so my URLs will look like: fr.example.com/somepage. I'm planning to use (HttpServletRequest) getContainerRequest()).getServerName()) for this, unless there is something nicer. Thank you. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/inferring-locale-from-URL-in-1-5-tp4497412p4497412.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org