Class JavaScriptLibrarySettings


  • public class JavaScriptLibrarySettings
    extends Object
    Class for settings related to the JavaScript libraries that come with and are used by Wicket.

    With these settings the user application can replace the JavaScript libraries used for Wicket's event and Ajax functionality. By default Wicket uses JQuery as a backing library but via this interface the application can replace the implementations of wicket-event.js, wicket-ajax.js and wicket-ajax-debug.js to use implementations on other libraries, such as YUI or DOJO. The resource reference implementations need to specify the dependency on the backing library, if needed.

    Since:
    6.0
    • Constructor Detail

      • JavaScriptLibrarySettings

        public JavaScriptLibrarySettings()
    • Method Detail

      • getJQueryReference

        public ResourceReference getJQueryReference()
        Returns:
        the reference to the JQuery JavaScript library used as backing library for wicket-event and wicket-ajax
      • setJQueryReference

        public JavaScriptLibrarySettings setJQueryReference​(ResourceReference jQueryReference)
        Parameters:
        jQueryReference - a reference to the JQuery JavaScript library used as backing library for wicket-event and wicket-ajax
        Returns:
        this object for chaining
      • getWicketAjaxReference

        public ResourceReference getWicketAjaxReference()
        Returns:
        the reference to the implementation of wicket-ajax.js
      • setWicketAjaxReference

        public JavaScriptLibrarySettings setWicketAjaxReference​(ResourceReference wicketAjaxReference)
        Parameters:
        wicketAjaxReference - a reference to the implementation of wicket-ajax.js
        Returns:
        this object for chaining