Author: andrei_exadel
Date: 2008-09-17 08:27:38 -0400 (Wed, 17 Sep 2008)
New Revision: 10462
Added:
trunk/test-applications/SeamApp/
Modified:
trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml
trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp
trunk/test-applications/seam/src/main/java/org/domain/TestApplication/session/Bean.java
trunk/test-applications/seam/src/main/webapp/WEB-INF/faces-config.xml
Log:
Modified: trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml 2008-09-17
11:40:06 UTC (rev 10461)
+++
trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml 2008-09-17
12:27:38 UTC (rev 10462)
@@ -11,7 +11,8 @@
listHeight="#{fileUpload.listHeight}"
listWidth="#{fileUpload.listHeight}"
uploadData="#{fileUpload.data}"
maxFilesQuantity="#{fileUpload.maxFilesQuantity}"
- fileUploadListener="#{fileUpload.fileUploadListener}"
binding="#{fileUpload.htmlFileUpload}">
+ fileUploadListener="#{fileUpload.fileUploadListener}"
+ acceptedTypes="">
<f:facet name="label">
<h:outputText value="{_KB}KB from {KB}KB uploaded :[ {mm}:{ss}
]"></h:outputText>
</f:facet>
Modified: trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp 2008-09-17
11:40:06 UTC (rev 10461)
+++ trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp 2008-09-17
12:27:38 UTC (rev 10462)
@@ -169,6 +169,9 @@
<a4j:commandLink
onclick="$('formID:FileUploadSubviewID:fileUploadID').component.clear()"
value="clear()"></a4j:commandLink>
+ <h:commandButton
+ onmousedown="return
$('formID:FileUploadSubviewID:fileUploadID').component.beforeSubmit()"
+ value="Submit"></h:commandButton>
</h:panelGrid>
<br />
<f:verbatim>
Modified:
trunk/test-applications/seam/src/main/java/org/domain/TestApplication/session/Bean.java
===================================================================
---
trunk/test-applications/seam/src/main/java/org/domain/TestApplication/session/Bean.java 2008-09-17
11:40:06 UTC (rev 10461)
+++
trunk/test-applications/seam/src/main/java/org/domain/TestApplication/session/Bean.java 2008-09-17
12:27:38 UTC (rev 10462)
@@ -20,10 +20,17 @@
*/
package org.domain.TestApplication.session;
+
+import org.richfaces.event.UploadEvent;
+
/**
* @author $Autor$
*
*/
public class Bean {
+ public void upload (UploadEvent event) {
+ System.out.println(event.getUploadItem().getFileName());
+ }
+
}
\ No newline at end of file
Modified: trunk/test-applications/seam/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/seam/src/main/webapp/WEB-INF/faces-config.xml 2008-09-17
11:40:06 UTC (rev 10461)
+++ trunk/test-applications/seam/src/main/webapp/WEB-INF/faces-config.xml 2008-09-17
12:27:38 UTC (rev 10462)
@@ -15,7 +15,7 @@
<managed-bean>
<managed-bean-name>bean</managed-bean-name>
<managed-bean-class>org.domain.TestApplication.session.Bean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
+ <managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>data</managed-bean-name>