This informs fiftyfive-wicket-js of the dependency. Then in your Java code, you just need to add {@code MyPanel.js} like this:
public MyPanel(String id) { super(id); add(new JavaScriptDependency(MyPanel.class)); }
At runtime, fiftyfive-wicket-js will find {@code MyPanel.js}, scan it for dependencies, and notice that jQuery UI is needed. It is smart enough to realize jQuery is needed as well. When the page renders, jQuery, jQuery UI, and {@code MyPanel.js} will all automatically be included inthe <head>, and in the correct order. Futhermore, the necessary jQuery UI CSS will be included as well (the "redmond" theme, by default).
Internally this class delegates to {@link JavaScriptDependencyLocator}to find the actual files and their dependencies. The behavior of this dependency discovery can be controlled using the {@link JavaScriptDependencySettings}. @since 2.0
|
|
|
|
|
|