My application is using a resourceBundle to concatenate CSS resources
via : getResourceBundles().addCssBundle( ... ).

My base wicket page, from which all others pages inherit starts
including the Bootstrap CSS, and then my other CSS :

public void renderHead(IHeaderResponse response) {
        super.renderHead( response );
        Bootstrap.renderHeadResponsive( response );

response.render( CssHeaderItem.forReference( BaseCssResourceReference.get() ) );
    ...
}

However, on some pages the Bootstrap CSS is included first, like on this
page : http://dubai.windcam.com/winds/gallery
Whilst on others, the mainCSSBundle is included first, like here :
http://dubai.windcam.com/winds/windDailyChart 
or here : http://dubai.windcam.com/winds/
And this breaks the CSS that overloads Bootstrap defaults.

What could be the cause of this ?

I thought that calling calling Bootstrap.renderHeadResponsive( response
) first would ensure this order.
Is there an other way to fix this order ?

Thank you,

Sylvain.

Reply via email to