Hi,
With the bundle - register a bundle that contains
WiQueryCoreThemeResourceReference and your Css reference for the custom Css
resource.
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.
I'd use the bundle approach.
On Tue, Jan 22, 2013 at 5:15 PM, Stefan Renz <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>