Author: andrei_exadel
Date: 2008-01-16 08:56:34 -0500 (Wed, 16 Jan 2008)
New Revision: 5416
Modified:
trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp
Log:
Refactoring
Modified: trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp 2008-01-16
13:56:31 UTC (rev 5415)
+++ trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp 2008-01-16
13:56:34 UTC (rev 5416)
@@ -36,13 +36,15 @@
permanent="#{bean.permanent}"
determined="#{bean.determined}"
reRenderAfterComplete="per2"
- mode="#{bean.modeString}">
+ mode="#{bean.modeString}"
+ progressVar="percent">
<f:facet name="initial">
<h:outputText value="Process not started"></h:outputText>
</f:facet>
- <f:facet name="completed">
+ <f:facet name="complete">
<h:outputText value="Process completed"></h:outputText>
</f:facet>
+ <h:outputText value="#{percent}%"></h:outputText>
</progressBar:progressBar>
<br clear="all"/>
<table><tr>
@@ -73,7 +75,7 @@
<f:verbatim><br /></f:verbatim>
</h:form>
<script>
- var pr = new ProgressBar('j_id_jsp_2009877409_1:progrs');
+ var pr = new ProgressBar('j_id_jsp_2009877409_4:progrs');
</script>
<input type="button" value="Get Progress"
onclick="alert(pr.getProgress());" /><br/><br/>
<input type="text" value="" id="percent"/>