// Note: ICEfaces ace:fileEntry relies on its own mechanism for handling file upload.
if (!ICEFACES_DETECTED && (contentType != null) &&
contentType.toLowerCase().startsWith(BridgeConstants.MULTIPART_CONTENT_TYPE_PREFIX)) {
MultiPartFormData multiPartFormData = (MultiPartFormData) portletRequest.getAttribute(
MULTIPART_FORM_DATA_FQCN);
if (multiPartFormData == null) {
facesRequestParameterMap = new FacesRequestParameterMapImpl(namespace, portletContainer,
bridgeRequestScope, facesViewParameterMap, defaultRenderKitId);
MultiPartFormDataProcessor multiPartFormDataProcessor = new MultiPartFormDataProcessorImpl();
Map<String, List<UploadedFile>> uploadedFileMap = multiPartFormDataProcessor.process(
clientDataRequest, bridgeContext.getPortletConfig(), facesRequestParameterMap);
multiPartFormData = new MultiPartFormDataImpl(facesRequestParameterMap, uploadedFileMap);
// Save the multipart/form-data in a request attribute so that it can be referenced later-on in the
// JSF lifecycle by file upload component renderers.
portletRequest.setAttribute(MULTIPART_FORM_DATA_FQCN, multiPartFormData);
}
else {
facesRequestParameterMap = multiPartFormData.getFacesRequestParameterMap();
}
}
}
if (facesRequestParameterMap == null) {