Author: nbelaevski
Date: 2009-04-20 14:57:20 -0400 (Mon, 20 Apr 2009)
New Revision: 13711
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/component/FileUploadPhaselistener.java
Log:
https://jira.jboss.org/jira/browse/RF-6877
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/component/FileUploadPhaselistener.java
===================================================================
---
trunk/ui/fileUpload/src/main/java/org/richfaces/component/FileUploadPhaselistener.java 2009-04-20
18:55:40 UTC (rev 13710)
+++
trunk/ui/fileUpload/src/main/java/org/richfaces/component/FileUploadPhaselistener.java 2009-04-20
18:57:20 UTC (rev 13711)
@@ -54,7 +54,9 @@
public void beforePhase(PhaseEvent event) {
FacesContext facesContext = event.getFacesContext();
ExternalContext externalContext = facesContext.getExternalContext();
- Object request = externalContext.getRequest();
+ Object request = (MultipartRequest) externalContext.getRequestMap().get(
+ FileUploadConstants.FILE_UPLOAD_REQUEST_ATTRIBUTE_NAME);
+
if (request instanceof MultipartRequest) {
MultipartRequest multipartRequest = (MultipartRequest) request;
try {