I think using ResourceReference#getDependencies() is better for this requirement. Your CSS should depend on BootstrapCssReference. See JQueryPluginJavaScriptResourceReference for example - it is a JS reference that depends on another JS reference that contributes jQuery.js.
On Fri, Apr 5, 2013 at 12:24 AM, [email protected] < [email protected]> wrote: > Yap - more prio to BootstrapCssReference in renderHead on the BasePage > > @Override > public void renderHead(IHeaderResponse response) { > super.renderHead(response); > > response.render(new PriorityHeaderItem(CssHeaderItem > .forReference(BootstrapCssReference.INSTANCE))); > } > > Thx André > > ------------------------------ > *Von:* Martin Grigorov <[email protected]> > *An:* [email protected]; "[email protected]" < > [email protected]> > *Gesendet:* 21:42 Donnerstag, 4.April 2013 > *Betreff:* Re: Sort order of css files > > Hi, > > Read http://wicketinaction.com/2012/07/wicket-6-resource-management/ - > dependency management. > > > On Thu, Apr 4, 2013 at 10:08 PM, [email protected] < > [email protected]> wrote: > > Hi all, > i'd like to override some twitter bootstrap styles with my custom css > file. How can i modify the order of the css files? > > The page source code looks like this and the first one should be rendered > after the the bootstrap css > > <link rel="stylesheet" type="text/css" > href="./wicket/resource/com.stringapp.client.pages.BasePage/style-ver-1365014964902.css" > /><link rel="stylesheet" type="text/css" > href="./wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference/webjars/bootstrap/2.3.1/css/bootstrap-ver-1364746975597.css" > /><link rel="stylesheet" type="text/css" > href="./wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference/webjars/bootstrap/2.3.1/css/bootstrap-responsive-ver-1364746975597.css" > /> > Thx André > > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com <http://jweekend.com/> > > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
