Author: ilya_shaikovsky
Date: 2008-05-14 07:39:34 -0400 (Wed, 14 May 2008)
New Revision: 8570
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/fileUpload/FileUploadBean.java
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-3391?page=all
http://jira.jboss.com/jira/browse/RF-3377
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/fileUpload/FileUploadBean.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/fileUpload/FileUploadBean.java 2008-05-14
11:20:14 UTC (rev 8569)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/fileUpload/FileUploadBean.java 2008-05-14
11:39:34 UTC (rev 8570)
@@ -50,6 +50,10 @@
return null;
}
+ public long getTimeStamp(){
+ return System.currentTimeMillis();
+ }
+
public ArrayList<File> getFiles() {
return files;
}
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-05-14
11:20:14 UTC (rev 8569)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-05-14
11:39:34 UTC (rev 8570)
@@ -150,12 +150,12 @@
<managed-property>
<property-name>color</property-name>
<property-class>long</property-class>
- <value>1000</value>
+ <value>0</value>
</managed-property>
<managed-property>
<property-name>scale</property-name>
<property-class>float</property-class>
- <value>2</value>
+ <value>0</value>
</managed-property>
<managed-property>
<property-name>text</property-name>
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml 2008-05-14
11:20:14 UTC (rev 8569)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/fileUpload/examples/fileUpload.xhtml 2008-05-14
11:39:34 UTC (rev 8570)
@@ -38,7 +38,9 @@
<h:panelGrid columns="2">
<a4j:mediaOutput element="img" mimeType="#{file.mime}"
createContent="#{fileUploadBean.paint}" value="#{row}"
- style="width:100px; height:100px;" />
+ style="width:100px; height:100px;" cacheable="false">
+ <f:param value="#{fileUploadBean.timeStamp}"
name="time"/>
+ </a4j:mediaOutput>
<h:panelGrid columns="2">
<h:outputText value="File Name:" />
<h:outputText value="#{file.name}" />