Author: amarkhel
Date: 2009-03-23 10:02:33 -0400 (Mon, 23 Mar 2009)
New Revision: 13103
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/FileUploadBean.java
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/FileWrapper.java
Log:
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/FileUploadBean.java
===================================================================
---
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/FileUploadBean.java 2009-03-23
13:58:14 UTC (rev 13102)
+++
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/FileUploadBean.java 2009-03-23
14:02:33 UTC (rev 13103)
@@ -62,7 +62,7 @@
@In("#{messages['file_saving_error']}")
private String FILE_SAVE_ERROR;
- @In(create = true) @Out
+ @In @Out
FileWrapper fileWrapper;
@In Model model;
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/FileWrapper.java
===================================================================
---
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/FileWrapper.java 2009-03-23
13:58:14 UTC (rev 13102)
+++
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/FileWrapper.java 2009-03-23
14:02:33 UTC (rev 13103)
@@ -21,26 +21,29 @@
package org.richfaces.realworld.ui;
import java.util.ArrayList;
+import java.util.List;
import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Observer;
import org.jboss.seam.annotations.Scope;
@Name("fileWrapper")
@Scope(ScopeType.SESSION)
+@AutoCreate
public class FileWrapper {
- private ArrayList<FileItem> files = new ArrayList<FileItem>();
+ private List<FileItem> files = new ArrayList<FileItem>();
public int getSize() {
return getFiles().size();
}
- public ArrayList<FileItem> getFiles() {
+ public List<FileItem> getFiles() {
return files;
}
- public void setFiles(ArrayList<FileItem> files) {
+ public void setFiles(List<FileItem> files) {
this.files = files;
}
Show replies by date