[richfaces-svn-commits] JBoss Rich Faces SVN: r6187 - trunk/framework/api/src/main/java/org/richfaces/event.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Feb 20 04:48:23 EST 2008


Author: akushunin
Date: 2008-02-20 04:48:22 -0500 (Wed, 20 Feb 2008)
New Revision: 6187

Modified:
   trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
Log:
changed file type in 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-20 08:11:11 UTC (rev 6186)
+++ trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java	2008-02-20 09:48:22 UTC (rev 6187)
@@ -1,5 +1,26 @@
+/**
+ * License Agreement.
+ *
+ *  JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007  Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
+ */
 package org.richfaces.event;
 
+import java.io.File;
 import java.io.InputStream;
 import javax.faces.component.UIComponent;
 import javax.faces.event.FacesEvent;
@@ -9,9 +30,9 @@
 	
 	
 	private static final long serialVersionUID = -7645197191376210068L;
-	private  InputStream file = null;
+	private  File file = null;
 
-	public UploadEvent(UIComponent component, InputStream file) {
+	public UploadEvent(UIComponent component, File file) {
 		super(component);
 		this.file = file;
 	}
@@ -27,7 +48,7 @@
 	}
 
 
-	public InputStream getFile() {
+	public File getFile() {
 		return file;
 	}
 		




More information about the richfaces-svn-commits mailing list