This behavior will cause jQuery to be added to the <head> if it is not there already. Your script can rely on the {@code jQuery}object being available.
The script will not be scanned for dependencies declared using the sprocket syntax. This behavior is intended for short one-liner initialization scripts.
Trivial example:
public MyPanel(String id) { super(id); add(new DomReadyScript("alert('page ready!')")); }@since 2.0
|
|
|
|