【发布时间】:2019-05-10 14:07:10
【问题描述】:
是否有可能从支持 bean 启动进度条(ajax)组件? https://www.primefaces.org/showcase/ui/misc/progressBar.xhtml。如果是,我该怎么做?
【问题讨论】:
标签: jsf primefaces
是否有可能从支持 bean 启动进度条(ajax)组件? https://www.primefaces.org/showcase/ui/misc/progressBar.xhtml。如果是,我该怎么做?
【问题讨论】:
标签: jsf primefaces
这个很简单。假设您的进度条如下所示...
<p:progressBar id="progressBarClient" widgetVar="pbClient" />
只需在您的 Java 代码中运行它...
PrimeFaces.current().executeScript("PF('pbClient').start();");
请参阅Showcase Example 了解更多信息。
【讨论】: