use of org.apache.wicket.markup.head.filter.JavaScriptFilteredIntoFooterHeaderResponse in project wicket by apache.
the class ResourceDecorationApplication method init.
@Override
protected void init() {
super.init();
getResourceBundles().addCssBundle(ResourceDecorationApplication.class, "css-bundle.css", new CssResourceReference(HomePage.class, "footer.css"), new CssResourceReference(HomePage.class, "header.css"));
setHeaderResponseDecorator(response -> {
// footer (after </body>)
return new ResourceAggregator(new JavaScriptFilteredIntoFooterHeaderResponse(response, "footerJS"));
});
}
Aggregations