org.apache.wicket.resource
Class CoreLibrariesContributor

java.lang.Object
  extended by org.apache.wicket.resource.CoreLibrariesContributor

public class CoreLibrariesContributor
extends Object

A helper class that contributes all required JavaScript resources needed for Wicket Ajax functionality

Since:
6.0

Constructor Summary
CoreLibrariesContributor()
           
 
Method Summary
static void contribute(Application application, IHeaderResponse response)
          Contributes the backing library plus the implementation of Wicket.Event.
static void contributeAjax(Application application, IHeaderResponse response)
          Contributes the Ajax backing library plus wicket-event.js and wicket-ajax.js implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreLibrariesContributor

public CoreLibrariesContributor()
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


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.