Example usage for org.apache.wicket.protocol.http WebApplication getAjaxRequestTargetListeners

List of usage examples for org.apache.wicket.protocol.http WebApplication getAjaxRequestTargetListeners

Introduction

In this page you can find the example usage for org.apache.wicket.protocol.http WebApplication getAjaxRequestTargetListeners.

Prototype

public AjaxRequestTargetListenerCollection getAjaxRequestTargetListeners() 

Source Link

Document

Returns the registered org.apache.wicket.ajax.AjaxRequestTarget.IListener objects.

Usage

From source file:com.googlecode.wicket.jquery.ui.Initializer.java

License:Apache License

@Override
public void init(Application application) {
    if (application instanceof WebApplication) {
        WebApplication webApplication = (WebApplication) application;
        webApplication.getAjaxRequestTargetListeners().add(new JQueryDestroyListener());
    }/*from w  ww. ja v  a 2s .c o m*/
}

From source file:com.googlecode.wicket.kendo.ui.Initializer.java

License:Apache License

@Override
public void init(Application application) {
    if (application instanceof WebApplication) {
        WebApplication webApplication = (WebApplication) application;
        webApplication.getAjaxRequestTargetListeners().add(new KendoDestroyListener());

        // registers .js.map pattern //
        IPackageResourceGuard packageResourceGuard = webApplication.getResourceSettings()
                .getPackageResourceGuard();

        if (packageResourceGuard instanceof SecurePackageResourceGuard) {
            ((SecurePackageResourceGuard) packageResourceGuard).addPattern("+*.js.map");
        }/*from  w  ww  .  j  a v  a  2 s  .  c  om*/
    }
}

From source file:com.premiumminds.webapp.wicket.Initializer.java

License:Open Source License

@Override
public void init(Application application) {
    if (application instanceof WebApplication) {
        WebApplication app = (WebApplication) application;

        // add DynamicListView handler
        app.getAjaxRequestTargetListeners().add(new AjaxListSetView.AjaxListener());
    }/* w w  w. j  a va2  s  .com*/
}