Addition of tooltip behavior.
[utils] / wicket / components / src / main / java / org / wamblee / wicket / jquery / JQueryHeaderContributor.java
index fb4cdf489d0d5c6c9d54bb242cb253bcf38d1d20..216b08248976debef4692d58dba5090b1f1b50a2 100644 (file)
@@ -22,14 +22,17 @@ import org.apache.wicket.markup.html.IHeaderResponse;
 import org.apache.wicket.markup.html.JavascriptPackageResource;
 
 /**
- * JQuery bahavior which adds the jquery javascript.
+ * JQuery header contribution that adds the jquery javascript and sets jQuery to 
+ * no-conflict mode so the <code>$</code> identifier is freed. Also, it checks
+ * the current configuration and uses the development mode jQuery library when run in 
+ * development mode and used the minimalized jQuery code when running in deployment mode.
  * 
  * @author Erik Brakkee
  */
 public class JQueryHeaderContributor extends HeaderContributor {
 
-    static final String JQUERY_DEPLOYMENT = "jquery-1.4.2.min.js";
-    static final String JQUERY_DEVELOPMENT = "jquery-1.4.2.js";
+    static final String JQUERY_DEPLOYMENT = "jquery-1.5.min.js";
+    static final String JQUERY_DEVELOPMENT = "jquery-1.5.js";
     static final String JQUERY_NOCONFLICT = "jquery-noconflict.js";
 
     private static HeaderContributor JQUERY_CONTRIBUTOR;