Author: andrei_exadel
Date: 2008-01-24 10:08:33 -0500 (Thu, 24 Jan 2008)
New Revision: 5591
Modified:
trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp
Log:
Modified: trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp 2008-01-24
15:04:27 UTC (rev 5590)
+++ trunk/sandbox/samples/progressBarDemo/src/main/webapp/pages/index.jsp 2008-01-24
15:08:33 UTC (rev 5591)
@@ -30,21 +30,23 @@
<h:form>
<progressBar:progressBar value="#{bean.value}"
enabled="#{bean.enabled}" id="progrs"
- interval="500"
+ interval="700"
reRender="per1"
styleClass="main"
permanent="#{bean.permanent}"
determined="#{bean.determined}"
reRenderAfterComplete="per2"
mode="#{bean.modeString}"
- progressVar="percent">
+ progressVar="percent"
+ parameters="p1:crack, p2: Process"
+ >
<f:facet name="initial">
<h:outputText value="Process not started"></h:outputText>
</f:facet>
<f:facet name="complete">
<h:outputText value="Process completed"></h:outputText>
</f:facet>
- <h:outputText value="#{percent}%"></h:outputText>
+ <h:outputText value="{value}%"></h:outputText>
</progressBar:progressBar>
<br clear="all"/>
<table><tr>
@@ -77,9 +79,17 @@
<script>
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="button" value="Get value"
onclick="alert(pr.getValue());" /><br/>
<input type="text" value="" id="percent"/>
- <input type="button" value="Set Progress"
onclick="pr.enable();
pr.setProgress(document.getElementById('percent').value);" />
+ <input type="button" value="Set value"
onclick="pr.setValue(document.getElementById('percent').value);" />
+ <br/>
+ <input type="text" value="" id="label"/>
+ <input type="button" value="Set label"
onclick="pr.setLabel(document.getElementById('label').value);" />
+ <br/>
+ <input type="button" value="Disable"
onclick="pr.disable();" />
+ <br/>
+ <input type="button" value="Enable"
onclick="pr.enable(event);" />
+
</f:view>
</body>
</html>
Show replies by date