Hello, I have a large project that I am upgrading from Wicket 6 to Wicket 8. Yes, it's fairly old. As I am working through the various changes one issue has stumped me. With Wicket 8, my javascript/CSS resources that are added to my WicketApplication are no longer being automatically added to my wicket pages.
In my project there are helper classes where a number of resources are defined. Examples of these helper classes are as follows: public class JS { public static final JavaScriptResourceReference JQUERY_UI = jquery( JS.class, "jquery-ui.min.js" ); public static final JavaScriptResourceReference D3 = new JavaScriptResourceReference( JS.class, "d3.min.js" ); public static void initChartJSBundle( Application wicketApp ) { return wicketApp.getResourceBundles().addJavaScriptBundle( JS.class, "chart.js", JQUERY_UI, D3); } } public class CSS { public static final CssResourceReference ICONS = css( "icons/icons.css" ); public static void initCSSResources( WebApplication wicketApp ) { wicketApp.mountResource( "css/icons.css", CSS.ICONS ); } } Normally, widely used resources are added to my Wicket Application by making calls to these helper classes in the init(): public abstract class MyApplication extends WebApplication { public MyApplication() { } @Override public void init() { JS.initChartJSBundle( this ); CSS.initCSSResources( this ); } } I'm aware that resources are typically added to pages/components by overriding the renderHead() method. I am in fact doing this for resources that are specific to particular pages. However, for widely used resources, the above example is all that was required for my Wicket 6 project to make resources available and automatically included as headers on my Wicket Pages. This does not seem to be the case with Wicket 8 as my resources are not being included on any rendered pages. I have scoured the changelogs for Wicket 8 and haven't found anything referring to the changes with resource management. Is there something I'm missing? Is the Wicket 6 behaviour something that was removed over a preferred method for resource management? If so, what is this method? Thanks, -- *Kyle Bibby**|* Software Tester | Avema Corporation 370 King Street West, Suite 604, Toronto, ON M5V 1J9 T: (416) 348-7286 <+14163487286> | E: kbi...@avemacorp.com <kbi...@avema.com> www.avema.com <https://www.facebook.com/AvemaCorporation> This message is directed in confidence solely to the person named above. The information in this message, and any attachment, may be proprietary, confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any use, distribution, copying or disclosure is prohibited. If you have received this message in error, please notify us immediately by telephone or by e-mail and delete this message, without making a copy. Thank you for your cooperation. -- Le présent message est destiné exclusivement à la personne dont le nom figure ci-dessus. L’information qu’il contient peut être privée, confidentielle, privilégiée et exempte de divulgation aux termes des lois applicables. Si vous n’êtes pas le destinataire visé par ce message, veuillez noter que l’utilisation, la distribution, la reproduction ou la divulgation de ce message est interdite. Si vous avez reçu le présent message par erreur, veuillez nous en aviser immédiatement par téléphone ou par courriel et supprimer ce message, sans en faire de copie. Merci de votre