Override webrequestcycle.onbeginrequest()
Get the hostname:
String hostname = ((WebRequest)
getRequest()).getHttpServletRequest().getHeader("host");
Then based on the host you can set Session.setstyle() and
Session.setLocale()
Mathias P.W Nilsson wrote:
>
> Hi!
>
> I have a model that should be shared with 4 websites. site1.se,
> site1.com, site2.se, site2.com
>
> So the only diffrents between site1.se and site2.com is the language. The
> diffrents between site2 and site1 is layout.
>
> How can this be done? I want to set the langauge in startup. the site1.se
> is only swedish and site1.com is only english. It should be integrated
> with payment so https will be supported. All the sites points to a domain
> name but is located on the same server.
>
> Do I have to have 4 wicket sites? What is the approach here?
>
--
View this message in context:
http://www.nabble.com/Problem-with-how-to-make-variation-tp16834129p16845768.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]