Hi Martin,

thanks for the quick response.

Martin Grigorov wrote:
> Hi,
> 
> With the bundle - register a bundle that contains
> WiQueryCoreThemeResourceReference and your Css reference for the custom Css
> resource.

Tried that, only one of the CSS loads, but I'll double check.

> 
> With the replacement -
> create
> class MyCssResRef extends CssResourceReference {
>    public MyCssResRef() { super(MyCssResRef.class, "my.css") }
> 
>    @Override public Iterable getDependencies() { return aListThatContains
> WiQueryCoreThemeCssHeaderItem;}
> }
> 
> and register it as replacement.

Tried that, getDependencies() never isn't called. Once again, I will
double check.

Thanks, bye
    Stefan

> 
> I'd use the bundle approach.
> 
> 
> On Tue, Jan 22, 2013 at 5:15 PM, Stefan Renz <s.r...@efonds.com> wrote:
> 
>> Hi,
>>
>> how would I specify to load an additional stylesheet when Wicket loads
>> the WiQueryCoreThemeResourceReference?
>>
>> Background: I'd like to tweak some of the jquery-ui styles by providing
>> a custom CSS. I want to make sure that whenever wiquery's core resource
>> loads, the additional CSS loads as well.
>>
>> I tried Application#addResourceReplacement(), but this replaces the core
>> resource entirely, and even though I specify it in #getDependency of my
>> custom resource reference.
>>
>> I also tried ResourceBundles, but that didn't work, either -- only one
>> of each loads. Maybe I just don't get the API...
>>
>> In WiQuery 1.5, I used IThemableApplication for that.
>>
>> Thanks for your help,
>>      Stefan
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 

-- 
im Auftrag der eFonds Solutions AG, +49-89-579494-3417


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to