Author: andrei_exadel
Date: 2008-02-22 08:03:36 -0500 (Fri, 22 Feb 2008)
New Revision: 6284
Modified:
trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
Log:
Add fileName property to UploadEvent
Modified: trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java 2008-02-22
12:41:04 UTC (rev 6283)
+++ trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java 2008-02-22
13:03:36 UTC (rev 6284)
@@ -21,7 +21,7 @@
package org.richfaces.event;
import java.io.File;
-import java.io.InputStream;
+
import javax.faces.component.UIComponent;
import javax.faces.event.FacesEvent;
import javax.faces.event.FacesListener;
@@ -31,10 +31,12 @@
private static final long serialVersionUID = -7645197191376210068L;
private File file = null;
+ private String fileName = null;
- public UploadEvent(UIComponent component, File file) {
+ public UploadEvent(UIComponent component, File file, String fileName) {
super(component);
this.file = file;
+ this.fileName = fileName;
}
@@ -51,5 +53,9 @@
public File getFile() {
return file;
}
+
+ public String getFileName() {
+ return fileName;
+ }
}
Show replies by date