The demo application for the blog article I linked above shows how to filter out header items [1] E.g. you can set some custom MetaDataKey in the RequestCycle in your border component and in the filter to drop the default Bootstrap resources in the RequestCycle contains this metadata.
1. https://github.com/martin-g/blogs/blob/c29f0875910d3bd5e11bca0d2c0fa8cdd84e3736/wicket6-resource-management/src/main/java/com/wicketinaction/ResourceManagementApplication.java#L69 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Apr 28, 2016 at 9:20 PM, Stefan Renz <[email protected]> wrote: > Hi, > > for the records: I eliminated the component that contributes stock > bootstrap.css -- TooltipBehavior. Without it on the page, and without > autoinclusion of bootstrap resources, I am able to contribute just the > customized bootstrap.css > > This is, of course, just a haphazard solution, not one that I find > satisfying. > > Bye > Stefan > > Stefan Renz wrote: > > Hi, > > > > thanks for your answers, they put me on the right track. Problem is, I > > need to replace the stock bootstrap resources just for some pages (a > > particular border, to be precise), whereas both suggestes solutions of > > resource replacement and BootstrapSettings seem to be global to the > > Wicket WebApplication. This route I cannot take as other borders must > > not use my custom bootstrap css. > > > > Any more ideas on that? I'll go and search for an API to access the > > HeaderItems on the page, maybe that's a feasible way to get rid of the > > stock bootstrap.css. > > > > The CSS I need to use apparently has custom responsive breakpoints, > > which messes up when both bootstrap.css are included. > > > > Any more hints would be appreciated. > > > > Thanks, > > Stefan > > > > Martin Grigorov wrote: > >> Hi, > >> > >> Also you could use resource replacement. > >> Check http://wicketinaction.com/2012/07/wicket-6-resource-management/ > >> > >> Martin Grigorov > >> Wicket Training and Consulting > >> https://twitter.com/mtgrigorov > >> > >> On Thu, Apr 28, 2016 at 8:07 PM, Sebastien <[email protected]> wrote: > >> > >>> Hi, > >>> > >>> I guess you can override BootstrapSettings > >>> https://github.com/l0rdn1kk0n/wicket-bootstrap/wiki/BootstrapSettings > >>> > >>> Hope this helps, > >>> Sebastien > >>> > >>> On Thu, Apr 28, 2016 at 8:00 PM, Stefan Renz <[email protected]> > wrote: > >>> > >>>> Hi forum, > >>>> > >>>> for some parts of a web application I need to suppress delivering the > >>>> bundled webjar's bootstrap css and js, delivering custom versions of > the > >>>> respective resources. It there a way to "replace" the bundled > versions? > >>>> How can one suppress them? Is it possible to even do that for some > pages > >>>> only? > >>>> > >>>> I'm running on wicket 6.9 and wicket-bootstrap 0.9.8. > >>>> > >>>> I appreciate any hint, thanks for your time, > >>>> Stefan > >>>> > >>>> > >>>> --------------------------------------------------------------------- > >>>> To unsubscribe, e-mail: [email protected] > >>>> For additional commands, e-mail: [email protected] > >>>> > >>>> > > > > -- > im Auftrag der eFonds Solutions AG, +49-89-579494-3417 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
