Search in sources :

Example 1 with ERXAjaxApplication

use of er.extensions.appserver.ajax.ERXAjaxApplication in project wonder-slim by undur.

the class Ajax method finishInitialization.

/**
 * This is called directly only for when ERXApplication is sub-classed.
 */
@Override
public void finishInitialization() {
    WOApplication application = WOApplication.application();
    if (!AjaxRequestHandler.useAjaxRequestHandler()) {
        application.registerRequestHandler(new AjaxRequestHandler(), AjaxRequestHandler.AjaxRequestHandlerKey);
        log.debug("AjaxRequestHandler installed");
    }
    application.registerRequestHandler(new AjaxPushRequestHandler(), AjaxPushRequestHandler.AjaxCometRequestHandlerKey);
    // to fix some weird border cases caused by structural page changes.
    if (application instanceof ERXAjaxApplication) {
        ((ERXAjaxApplication) application).setResponseDelegate(new AjaxResponse.AjaxResponseDelegate());
    }
    log.debug("Ajax loaded");
}
Also used : ERXAjaxApplication(er.extensions.appserver.ajax.ERXAjaxApplication) WOApplication(com.webobjects.appserver.WOApplication)

Aggregations

WOApplication (com.webobjects.appserver.WOApplication)1 ERXAjaxApplication (er.extensions.appserver.ajax.ERXAjaxApplication)1