You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by mac <gm...@gmail.com> on 2013/11/18 13:31:17 UTC

CSS reference order

I have integrated in my application wicket-bootstrap library. I also have my
own bootstrap-override.css which is added in renderHead method as a
CssHeaderItem.
Wicket renders bootstrap-override reference first in a head section. How can
I change the reference order that my file will be loaded as the last one?

Thanks,
mac



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-reference-order-tp4662495.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: CSS reference order

Posted by mac <gm...@gmail.com>.
I have created my own reference and added this inside getDependencies method:

List<HeaderItem> dependencies = new ArrayList<>();
dependencies.add( CssHeaderItem.forReference(
BootstrapCssReference.instance() ) );
return dependencies;

and it works.

Thanks for advice.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-reference-order-tp4662495p4662524.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: CSS reference order

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Override ResourceReference#getDependencies() for the reference that
contribute bootstrap-override.css.
It should depend on
CssHeaderItem.forRefernce(de.agilecoders.wicket.core.markup.html.themes.bootstrap.BootstrapCssReference)
See http://wicketinaction.com/2012/07/wicket-6-resource-management/


On Mon, Nov 18, 2013 at 2:31 PM, mac <gm...@gmail.com> wrote:

> I have integrated in my application wicket-bootstrap library. I also have
> my
> own bootstrap-override.css which is added in renderHead method as a
> CssHeaderItem.
> Wicket renders bootstrap-override reference first in a head section. How
> can
> I change the reference order that my file will be loaded as the last one?
>
> Thanks,
> mac
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/CSS-reference-order-tp4662495.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>