Locale

Change the locale of the datepicker, schedule and client side validation messages.

Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

PrimeOne Design

Saga Saga
Vela Vela
Arya Arya

Premium Themes

Premium themes are only available exclusively for PrimeFaces Theme Designer subscribers and therefore not included in PrimeFaces core.

Bootstrap light blue and dark blue themes are also included in PrimeFaces 10.x builds for Elite subscribers.

bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple

Legacy Free Themes

Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink
Nova Nova
Nova Nova Alt
Nova Nova Accent

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.

ProgressBar

ProgressBar is a process status indicator that can either work on client side or integrate with server side via ajax.

Client ProgressBar
Ajax ProgressBar
0%
Ajax ProgressBar (with long running method)
0%
Static Display
50%
Indeterminate

<script type="text/javascript">
    //<![CDATA[
    function start() {
        PF('startButton1').disable();

        window['progress'] = setInterval(function () {
            var pbClient = PF('pbClient'),
                oldValue = pbClient.getValue(),
                newValue = oldValue + 10;

            pbClient.setValue(pbClient.getValue() + 10);

            if (newValue === 100) {
                clearInterval(window['progress']);
            }


        }, 1000);
    }

    function cancel() {
        clearInterval(window['progress']);
        PF('pbClient').setValue(0);
        PF('startButton1').enable();
    }

    //]]>
</script>

<div class="card">
    <h:form>
        <p:growl id="growl"/>

        <h5 class="p-mt-0">Client ProgressBar</h5>
        <p:commandButton value="Start" id="start" type="button" onclick="start()" widgetVar="startButton1" styleClass="p-mr-2" />
        <p:commandButton value="Cancel" id="cancel" type="button" onclick="cancel()" styleClass="ui-button-outlined" />

        <p:progressBar id="progressBarClient" widgetVar="pbClient" style="width:300px" styleClass="p-mt-3"/>

        <h5>Ajax ProgressBar</h5>
        <p:commandButton value="Start" type="button"
                         onclick="PF('pbAjax').start();PF('startButton2').disable()" widgetVar="startButton2" styleClass="p-mr-2"/>
        <p:commandButton value="Cancel" action="#{progressBarView.cancel}"
                         oncomplete="PF('pbAjax').cancel();PF('startButton2').enable()" styleClass="ui-button-outlined"/>

        <p:progressBar widgetVar="pbAjax" ajax="true" value="#{progressBarView.progress1}"
                       labelTemplate="{value}%" styleClass="p-mt-3" global="false">
            <p:ajax event="complete" listener="#{progressBarView.onComplete}" update="growl"
                    oncomplete="PF('startButton2').enable()" />
        </p:progressBar>

        <h5>Ajax ProgressBar (with long running method)</h5>
        <p:commandButton value="Start" type="button"
                         onclick="PF('pbAjaxLong').start();PF('startButton3').disable()"
                         widgetVar="startButton3" actionListener="#{progressBarView.longRunning}" styleClass="p-mr-2"/>
        <p:commandButton value="Cancel" action="#{progressBarView.cancel}"
                         oncomplete="PF('pbAjaxLong').cancel();PF('startButton3').enable()" styleClass="ui-button-outlined"/>

        <p:progressBar widgetVar="pbAjaxLong" ajax="true" value="#{progressBarView.progress2}"
                       labelTemplate="{value}%" styleClass="p-mt-3" global="false" interval="500">
            <p:ajax event="complete" listener="#{progressBarView.onComplete}" update="growl"
                    oncomplete="PF('startButton3').enable()" />
        </p:progressBar>

        <h5>Static Display</h5>
        <p:progressBar value="50" labelTemplate="{value}%" displayOnly="true"/>

        <h5>Indeterminate</h5>
        <p:progressBar id="progressBarIndeterminate" style="height:6px" mode="indeterminate"/>
    </h:form>
</div>