if (results == null && ERXAjaxApplication.shouldNotStorePage(context)) { WOResponse response = context.response(); ERXAjaxApplication.cleanUpHeaders(response); results = response;
if (ERXAjaxApplication.shouldNotStorePage(context)) { if (results == context.page()) { NSLog.out.appendln("ERXAjaxApplication.invokeAction: An Ajax response return context.page(), which is almost certainly an error."); results = null; } if (results == null) { WOResponse response = context.response(); ERXAjaxApplication.cleanUpHeaders(response); results = response; }
    public WOActionResults invokeAction(WORequest request, WOContext context) {        WOActionResults results = super.invokeAction(request, context);        // MS: This is to support AjaxUpdateContainer.        if (results == null && ERXAjaxApplication.shouldNotStorePage(context)) {        	WOResponse response = context.response();        	ERXAjaxApplication.cleanUpHeaders(response);        	results = response;        }        return results;    }