You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Stefan Lindner <li...@visionet.de> on 2010/02/01 19:01:01 UTC

CSS order

How can I asure that a CSS header contribution is rendered into <head>
AFTER another css reference. To explain it a little bit more:
If I use wicket.datetime.DatePicker the line

	<link id="yui__dyn_0" type="text/css" charset="utf-8"
rel="stylesheet"
href="resources/org.apache.wicket.extensions.yui.YuiLib/calendar/assets/
skins/sam/calendar.css">

If I want to customize some elements of the DatePicker I need my own CSS
to load AFTER calendar.css.

Overriding DatePicker.renderHead like

	@Override
	public void renderHead(IHeaderResponse response) {
		super.renderHead(response);
		response.renderCSSReference(new
ResourceReference(CSS.class, "myCal.css"));
	}

Does not work. It places myCal.css always BEFORE calendar.css

Stefan

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