<script type="text/javascript">
function start() {
window['progress'] = setInterval(function() {
var pbClient = PF('pbClient'),
oldValue = pbClient.getValue(),
newValue = oldValue + 10;
pbClient.setValue(pbClient.getValue() + 10);
if(newValue === 100) {
clearInterval(window['progress']);
}
}, 100);
}
</script>
I want to call this function in my Java class.Actually this problem is the progress bar is in dialog.And I want to go another xhtml page after progress bar