That does not override the CSS file used by wicket-bootstrap. It just renders an additional CSS reference in the head section. So it might happen that either my custom or the original Style Sheet will be used depending on which one will be rendered first.
Marvin Richter -----Original Message----- From: Gabriel Landon [mailto:glan...@piti.pf] Sent: Friday, March 21, 2014 7:34 PM To: users@wicket.apache.org Subject: Re: custom bootstrap stylesheet Here's what I'm doing with a "less" reference (would be the same for css). public abstract class AbstractPage extends WebPage { /** Less/css reference. */ private static final LessResourceReference MY_LESS_REFERENCE = new LessResourceReference(AbstractPage .class, "css/style.less"); @Override public void renderHead(final IHeaderResponse response) { super.renderHead(response); Bootstrap.renderHead(response); // Your CSS/LESS reference response.render(CssHeaderItem.forReference(MY_LESS_REFERENCE)); } } Regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-bootstrap-stylesheet-tp4665044p4665079.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org