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");
}
Aggregations