:ウィケット(1.3.7)HeaderContributor.forJavascriptパス
ResourceReference js; js = JavascriptResourceReference("/assets/js/plugins/forms/selects/select2.min.js");
add(HeaderContributor.forJavaScript(js));
問題は改札では、このようにパスを置く: src="resources/org.apache.wicket.Application//assets/js/plugins/forms/selects/select2.min.js"
そして私はちょうど
src="assets/js/plugins/forms/selects/select2.min.js"
府になりたいですtは、そのマニュアルそれはそう指定されています。
-> Starts with http:// or https:// for an external reference. -> Starts with "/" for an absolute reference that Wicket will not rewrite. -> Starts with anything else, which Wicket will automatically prepend to make relative to the context root of your web-app.