[richfaces-svn-commits] JBoss Rich Faces SVN: r5977 - trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Sat Feb 9 10:13:57 EST 2008
Author: andrei_exadel
Date: 2008-02-09 10:13:57 -0500 (Sat, 09 Feb 2008)
New Revision: 5977
Modified:
trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp
Log:
Modified: trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp 2008-02-09 15:13:38 UTC (rev 5976)
+++ trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp 2008-02-09 15:13:57 UTC (rev 5977)
@@ -11,11 +11,17 @@
<body>
<f:view>
<h:form>
-<fu:fileUpload data="#{bean.data}">
+<fu:fileUpload data="#{bean.data}" progressInfo="info">
<f:facet name="progress">
<progressBar:progressBar style="height: 10px; width: 300px;" maxValue="101" minValue="-1">
</progressBar:progressBar>
</f:facet>
+ <f:facet name="progressLabel">
+ <h:panelGroup>
+ <h:outputText value="#{info.uploadedMB}MB from #{info.MB}MB"></h:outputText>
+ <h:outputText style="padding-left: 80px" value="time: #{info.mm}:#{info.ss}"></h:outputText>
+ </h:panelGroup>
+ </f:facet>
</fu:fileUpload><br/><br/><br/>
<h:commandButton actionListener="#{bean.action}" style="font-weight: bold; width: 300px;" value="Print file content in console"></h:commandButton>
</h:form>
More information about the richfaces-svn-commits
mailing list