throw new IllegalStateException("buffering not supported in the portal environment. "+
" Use for org.apache.myfaces.ADD_RESOURCE_CLASS the value"+
" org.apache.myfaces.renderkit.html.util.NonBufferingAddResource.");
}
externalContextDelegate = new PortletExternalContextWrapper(
delegate.getExternalContext(), extendedRequest, extendedResponse, multipartContent);
}
else {
HttpServletResponse httpResponse = (HttpServletResponse) delegate.getExternalContext().getResponse();
HttpServletRequest httpRequest = (HttpServletRequest) delegate.getExternalContext().getRequest();