View Source

h3. Overview

Progress bar is a progress indicator that can work on the client side by itself or gets its progress update from the server using ajax.



h3. Usage

Client side only:
{code}
<script type="text/javascript">
function begin()
{
 this.progressInterval = setInterval (
function()
{
clientSideBar.setValue(clientSideBar.getValue() + 10);
}
, 2000);
}

function stop()
{
clearInterval(this.progressInterval);
clientSideBar.setValue(0);
}
</script>
...
 <ace:panel>
<ace:progressBar widgetVar="clientSideBar" />
</ace:panel>
...
 <h:commandButton onclick="begin();" ... />
<h:commandButton onclick="stop();" ... />
{code}
Client polling server:
{code}
<ace:progressBar widgetVar="#{upload.widgetVarName}" ajax="true" interval="2000" value="#{upload.progressValue}" ... />
...
<h:commandButton onclick="#{upload.widgetVarName}.start();" ... />
{code}
h3. Component Attributes
{info:title=TagLib Documentation}This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available [here|http://www.icefaces.org/docs/v2_latest/ace/tld/ace/dateTimeEntry.html].{info}
{panel}
*ajax* specifies the mode of progressBar, in ajax mode progress value is retrieved from a backing bean.
{panel}
{panel}
*cancelListener*, *changeListener*, *completeListener* are the listeners for the different stages of the progress. In the change event you can get the value and percentage of the progress bar.
{panel}
{panel}
*interval* is time between polls to the server in milliseconds.
{panel}
h3. JavaScript APIs / Client Behaviours


h3. Keyboard and ARIA Support


h3. Known Issues


h3. Other Resources


h3.


h3.


h3.


h3.


h3.


h3.


h3.