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;