[英]Primefaces start progressBar from backing bean
Is there any possibility to start progress bar (ajax) component from backing bean? 是否有可能从支持bean启动进度栏(ajax)组件? https://www.primefaces.org/showcase/ui/misc/progressBar.xhtml .
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... 只需在您的Java代码中运行它即可...
PrimeFaces.current().executeScript("PF('pbClient').start();");
See the Showcase Example for more info. 有关更多信息,请参见展示示例 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.