On Tue, Jan 17, 2012 at 9:50 PM, datazuul <[email protected]> wrote:
> I set style of session like this in my WebApplication:
> public Session newSession(final Request request, final Response response) {
>        return new WicketWebSession(request).setStyle("style1");

Can you try without calling .setStyle(). I think your problem is not
related to that call.

>    }
>
> when I call HomePage the right markup is retrieved: HomePage_style1.html.
>
> BUT: the context-relative URL of the css (and images) which is fix coded in
> markup file like this:
> href="style1/css/style.css" or src="images/...."
>
> is rendered finally to
> href="../style1/css/style.css" or src="../images/...."
> (when I look in the source code in browser), so all style is missing
> (when I change in Firebug again back to href="style1/css/style.css" the
> style is fine...)
>
> Also the context relative images are rendered with a leading "../images/"
> instead the correct "images/"...
>
> Anything wrong I did in a styled/variant markup file? do I have to use
> relative URLs different for styled/variant pages?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/context-relative-CSS-Url-wrong-in-styled-variant-HTML-page-tp4304686p4304686.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to