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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.