While migrating from Wicket 7 to Wicket 8, following official guidelines and fixing all compiling issues, as well as all the test that are failing, there was an interesting removal that was not documented anywhere.
`
JavaScriptResourceReference wicketEvent = (JavaScriptResourceReference) getJavaScriptLibrarySettings().getWicketEventReference();
`
When running the application we have to check whether any of the new changes affect use cases, I found out that multiple parts are not loading due to this error:
Which points to this snippet of code which I assume is from the framework: enter image description here
I have tried searching for this on multiple platforms but it is not documented at all. I hope I am not on a wrong track.
getJavaScriptLibrarySettings().setJQueryReference(JQueryResourceReference.getV2());
JavaScriptResourceReference ajaxJquery = (JavaScriptResourceReference) getJavaScriptLibrarySettings().getWicketAjaxReference();
JavaScriptResourceReference scrolling = new JavaScriptResourceReference(ScrollingResourceReference.class, "scrolling.js");
getResourceBundles().addJavaScriptBundle(EcareReference.class, "ecare-wicket.js", ajaxJquery, scrolling,
new LazyLoadingResourceReference());
Here is the context in which I use that snippet.