Author: Alex.Kolonitsky
Date: 2010-12-13 05:35:25 -0500 (Mon, 13 Dec 2010)
New Revision: 20519
Modified:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/fileupload/FileUploadBean.java
trunk/ui/pom.xml
trunk/ui/validator/ui/pom.xml
Log:
fix build
Modified:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/fileupload/FileUploadBean.java
===================================================================
---
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/fileupload/FileUploadBean.java 2010-12-13
09:57:57 UTC (rev 20518)
+++
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/fileupload/FileUploadBean.java 2010-12-13
10:35:25 UTC (rev 20519)
@@ -1,16 +1,15 @@
package org.richfaces.demo.fileupload;
+import org.richfaces.event.UploadEvent;
+import org.richfaces.model.UploadedFile;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
import java.io.IOException;
import java.io.OutputStream;
import java.io.Serializable;
import java.util.ArrayList;
-import javax.faces.bean.ManagedBean;
-import javax.faces.bean.SessionScoped;
-
-import org.richfaces.event.UploadEvent;
-import org.richfaces.model.UploadItem;
-
/**
* @author Ilya Shaikovsky
*
@@ -37,10 +36,10 @@
}
public void listener(UploadEvent event) throws Exception {
- UploadItem item = event.getUploadItem();
+ UploadedFile item = event.getUploadedFile();
UploadedImage file = new UploadedImage();
file.setLength(item.getData().length);
- file.setName(item.getFileName());
+ file.setName(item.getName());
file.setData(item.getData());
files.add(file);
uploadsAvailable--;
Modified: trunk/ui/pom.xml
===================================================================
--- trunk/ui/pom.xml 2010-12-13 09:57:57 UTC (rev 20518)
+++ trunk/ui/pom.xml 2010-12-13 10:35:25 UTC (rev 20519)
@@ -45,6 +45,6 @@
<module>input</module>
<module>dist</module>
<module>dnd</module>
- <module>validator</module>
+ <!--<module>validator</module>-->
</modules>
</project>
Modified: trunk/ui/validator/ui/pom.xml
===================================================================
--- trunk/ui/validator/ui/pom.xml 2010-12-13 09:57:57 UTC (rev 20518)
+++ trunk/ui/validator/ui/pom.xml 2010-12-13 10:35:25 UTC (rev 20519)
@@ -102,7 +102,6 @@
<dependency>
<groupId>org.jboss.test-jsf</groupId>
<artifactId>jsf-test-jetty</artifactId>
- <version>1.0.6-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>