Author: ayanul
Date: 2008-04-14 05:35:17 -0400 (Mon, 14 Apr 2008)
New Revision: 7790
Modified:
trunk/test-applications/facelets/src/main/java/fileUpload/FileUpload.java
trunk/test-applications/jsp/src/main/java/fileUpload/FileUpload.java
Log:
+fix RF-3032
Modified: trunk/test-applications/facelets/src/main/java/fileUpload/FileUpload.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/fileUpload/FileUpload.java 2008-04-14
09:11:15 UTC (rev 7789)
+++ trunk/test-applications/facelets/src/main/java/fileUpload/FileUpload.java 2008-04-14
09:35:17 UTC (rev 7790)
@@ -4,8 +4,8 @@
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
+import java.io.InputStream;
-
import org.richfaces.event.UploadEvent;
import org.richfaces.model.UploadItem;
@@ -34,7 +34,7 @@
maxFilesQuantity = 3;
}
- public void fileUploadListener(UploadEvent event) throws IOException{
+ public void fileUploadListener(UploadEvent event) throws Exception{
UploadItem upload = event.getUploadItem();
if (upload.isFile()) {
File file = upload.getFile();
Modified: trunk/test-applications/jsp/src/main/java/fileUpload/FileUpload.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/fileUpload/FileUpload.java 2008-04-14
09:11:15 UTC (rev 7789)
+++ trunk/test-applications/jsp/src/main/java/fileUpload/FileUpload.java 2008-04-14
09:35:17 UTC (rev 7790)
@@ -5,6 +5,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import java.io.InputStream;
import org.richfaces.event.UploadEvent;
import org.richfaces.model.UploadItem;
@@ -34,7 +35,7 @@
maxFilesQuantity = 3;
}
- public void fileUploadListener(UploadEvent event) throws IOException{
+ public void fileUploadListener(UploadEvent event) throws Exception{
UploadItem upload = event.getUploadItem();
if (upload.isFile()) {
File file = upload.getFile();
Show replies by date