Class JQueryHeaderContributor

  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.apache.wicket.behavior.AbstractHeaderContributor
          extended by org.apache.wicket.behavior.HeaderContributor
              extended by org.wamblee.wicket.jquery.JQueryHeaderContributor
All Implemented Interfaces:, org.apache.wicket.behavior.IBehavior, org.apache.wicket.IClusterable, org.apache.wicket.markup.html.IHeaderContributor

public class JQueryHeaderContributor
extends org.apache.wicket.behavior.HeaderContributor

JQuery header contribution that adds the jquery javascript and sets jQuery to no-conflict mode so the $ 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.

Erik Brakkee
See Also:
Serialized Form

Constructor Summary
          Constructs the behavior.
Method Summary
static void clear()
          Resets the cached value of the header contribution.
Methods inherited from class org.apache.wicket.behavior.HeaderContributor
forCss, forCss, forCss, forCss, forCss, forCss, forJavaScript, forJavaScript, forJavaScript, getHeaderContributors
Methods inherited from class org.apache.wicket.behavior.AbstractHeaderContributor
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, bind, cleanup, detach, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onComponentTag, onException, onRendered, rendered
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public JQueryHeaderContributor()
Constructs the behavior.

Method Detail


public static void clear()
Resets the cached value of the header contribution. Used typically for test only.

Copyright © 2022. All Rights Reserved.