Class CoreLibrariesContributor


  • public class CoreLibrariesContributor
    extends Object
    A helper class that contributes all required JavaScript resources needed for Wicket Ajax functionality
    Since:
    6.0
    • Method Detail

      • contribute

        public static void contribute​(Application application,
                                      IHeaderResponse response)
        Contributes the backing library plus the implementation of Wicket.Event.
        Parameters:
        application - the application instance
        response - the current header response
      • contributeAjax

        public static void contributeAjax​(Application application,
                                          IHeaderResponse response)
        Contributes the Ajax backing library plus wicket-event.js and wicket-ajax.js implementations. Additionally if Ajax debug is enabled then wicket-ajax-debug.js implementation is also added.
        Parameters:
        application - the application instance
        response - the current header response