All pastes #205365 Raw Edit

Something

public text v1 · immutable
#205365 ·published 2006-10-16 19:15 UTC
rendered paste body
        if (servletContext == null) {
            servletContext = (ServletContext) extContext.getContext();
        }
        if (Util.isPrefixMapped(Util.getFacesMapping(context))) {
            // if an image has been requested of the ViewHandler,
            // set responseComplete() to terminate the remainder of
            // the lifecycle and return null;
            String viewId = viewToRender.getViewId();
            String mimeType = servletContext.getMimeType(viewId);
            if (mimeType != null && mimeType.startsWith("image")) {
                context.responseComplete();
                extContext.dispatch(viewId);
                return;
            }
        }