Create a toast with a progress bar. Automatic dispose after a specific time is disabled
(disposeDelay="-1"
). The close button is hidden (markup="hideCloseButton"
).
The component is refreshed every 100ms. After the progress bar has reached 100%, the progress bar object is
removed from the list (value="#{toastsController.progressBars}"
. After the next refresh the related
toast will also be removed from the page.
<tc:toasts id="progressBarToasts" value="#{toastsController.progressBars}"
var="progress" disposeDelay="-1" markup="hideCloseButton">
<f:facet name="reload">
<tc:reload frequency="100"/>
</f:facet>
<f:facet name="header">
<tc:out value="Progress" plain="true"/>
</f:facet>
<tc:progress value="#{progress.value}" max="#{progress.max}"/>
</tc:toasts>