Is there any possibility to start progress bar (ajax) component from backing bean? https://www.primefaces.org/showcase/ui/misc/progressBar.xhtml. If yes, how could I do that?
Asked
Active
Viewed 592 times
1
-
Possible duplicate of [Calling a JavaScript function from managed bean](https://stackoverflow.com/questions/5675017/calling-a-javascript-function-from-managed-bean) – Kukeltje May 10 '19 at 20:23
1 Answers
2
This one is pretty easy. Assume your progress bar looks like this...
<p:progressBar id="progressBarClient" widgetVar="pbClient" />
Just run this in your Java code...
PrimeFaces.current().executeScript("PF('pbClient').start();");
See the Showcase Example for more info.

Melloware
- 10,435
- 2
- 32
- 62