JSF – Simple Progress Bar Example
30.07.2009 at 8:43 (IBM JWL, JSF, Web programming) (exaple, progress bar, progressbar, sipmle)
JavaScript function:
function startProgressBar(progBarId, progBarMsg){
hX.getComponentById(progBarId).start(progBarMsg);
}
JSP Code Snippet:
<%–The progress bar –%>
<hx:progressBar id=“pBar“ auto=“true“ styleClass=“progressBar“
title=“Show Progress“ message=“Progress:“ ></hx:progressBar>
<%–Button –%>
<hx:commandExButton type=“submit“ value=“Filter“
action=“#{mBQueue.filterByCriteria}“ styleClass=“commandExButton“
id=“btnSearchByCriteria“ onclick=“startProgressBar(‘pBar’,'Please wait…’);“>
<hx:behavior event=“onclick“ behaviorAction=“get;get“
targetAction=“boxPQCriteria;boxPQResults_rfsh“>
</hx:behavior>
</hx:commandExButton>
USEFUL LINK