On Tue, Jan 25, 2011 at 2:02 AM, Mike Mander <[email protected]> wrote:
> Hi all,
>
> i try to load a variant of my main css file (wicket 1.4.15).
>
> The file is located in a webapp-subfolder (src/main/webapp/_css).
> So i set the style of session to "branda". In the page i load the css like
> this
> <code>
> add(CSSPackageResource.getHeaderContribution("/_css/main.css", "screen"));
> </code>
>
> I expected to get css-file "/_css/main_brenda.css" but it's /_css/main.css.
> The session style attribute is really "branda". I've checked that already.
>
> Can i do something else to get that working?
>
> Thanks
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
I don't have my IDE open in front of me, but have you tried using a resource
reference rather than a static URL to your resource?
--
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket? Use Brix! http://brixcms.org*