H*** S***...

I hate friday afternoons.

Read the chapter for resource bundles about 10 times and didnt "see" the 
underscores.

Thanx Sven, it works...

Patrick

Am 16.05.2014 19:49, schrieb Sven Meier:
> Try with myCss_blue.css
>
> Regards
> Sven
>
>
> On 05/16/2014 03:51 PM, Patrick Davids wrote:
>> Hi all,
>> I have problems with resource look up for styles css... and I dont know,
>> what I am doing wrong.
>>
>> Can someone have a look, please...
>>
>> myPackage.
>>     BasePage.java
>>     BasePage.html
>>     myCss.css
>>     myCss.blue.css
>>     myCss.orange.css
>>
>> As far as I know, the resource lookup for all kind of resources is the
>> same.
>>
>> I set the style to my Session via
>> Session.get().setStyle("blue");
>>
>> and I can see the correct style string while debugging.
>>
>>
>> I tried to include my css into the BasePage via
>>
>> BasePage.html
>> <wicket:head>
>>     <wicket:link>
>>       <link rel="stylesheet" type="text/css" href="myCss.css" />
>>     </wicket:link>
>> </wicket:head>
>>
>> and also via
>>
>> BasePage.java:
>> @Override
>> public void renderHead(HtmlHeaderContainer container) {
>>     super.renderHead(container);
>>     IHeaderResponse response = container.getHeaderResponse();
>>     response.render(CssHeaderItem.forReference(new
>> CssResourceReference(BasePage.class, "myCss.css", getLocale(),
>> getStyle(), getVariation())));
>> }
>>
>> Both ways always look up the normal myCss.css and not myCss.blue.css.
>> Whats wrong with my code?
>> Help please...
>>
>> Thanx a lot.
>> kind regards
>> Patrick
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

-- 
Mit freundlichen Grüßen,

Patrick Davids

nuboLOGIC GmbH & Co. KG
Kieler Str. 103-107 • 25474 Bönningstedt

Tel.: +49 40 228539 732
Email: [email protected]

http://www.nubologic.com

Handelsregister: HRA6819 Pi  | Amtsgericht Pinneberg

Geschäftsführung der Verwaltungsgesellschaft
Daniel Fraga Zander

HRB10145Pi | Amtsgericht Pinneberg

Reply via email to