I think, in this case, you should extend ResourceReference and override 
protected Resource newResource()  method.

Alex.


Csaba Madai wrote:
> 
> And how can i load the CSS when it is on the filesystem (outside of war, 
> jar etc.) ?
> 
> Alex Objelean wrote:
>> Images mentioned in the CSS are relative to the css file. I wouldn't
>> recommend to load css files from the markup, a better approach would be
>> using HeaderContributor.forCSS(ResourceReference).
>>
>> Regards,
>> Alex.
>>
>>
>> Csaba Madai wrote:
>>   
>>> Hi All!
>>>
>>> I found on the wiki how i can control where my markup files are loaded 
>>> from, but how can i control where the CSS files refered in the markup 
>>> loaded from and also the images mentioned in the CSS?
>>>
>>> Thanks,
>>> Csaba
>>>
>>> ---------------------------------------------------------------------
>>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Control-where-CSS-files-are-loaded-from-tf4955428.html#a14192366
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to