Author: ilya_shaikovsky
Date: 2011-01-06 06:50:02 -0500 (Thu, 06 Jan 2011)
New Revision: 20903
Modified:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/fileupload/FileUploadBean.java
Log:
https://issues.jboss.org/browse/RF-10133
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 2011-01-06
10:27:53 UTC (rev 20902)
+++
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/fileupload/FileUploadBean.java 2011-01-06
11:50:02 UTC (rev 20903)
@@ -20,7 +20,6 @@
public class FileUploadBean implements Serializable {
private ArrayList<UploadedFile> files = new ArrayList<UploadedFile>();
- private int uploadsAvailable = 5;
public void paint(OutputStream stream, Object object) throws IOException {
stream.write(getFiles().get((Integer) object).getData());
@@ -29,12 +28,10 @@
public void listener(FileUploadEvent event) throws Exception {
files.add(event.getUploadedFile());
- uploadsAvailable--;
}
public String clearUploadData() {
files.clear();
- setUploadsAvailable(5);
return null;
}
@@ -58,12 +55,4 @@
return System.currentTimeMillis();
}
- public int getUploadsAvailable() {
- return uploadsAvailable;
- }
-
- public void setUploadsAvailable(int uploadsAvailable) {
- this.uploadsAvailable = uploadsAvailable;
- }
-
}