Input Style

Free Themes

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

Saga Saga
Vela Vela
Arya Arya

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.

AjaxFramework Status

AjaxStatus is a global indicator to provide feedback about the ongoing ajax request. This page has two AjaxStatus components, one with facet driven declarative approach and the other one using callbacks.

Status: StandBy

<style type="text/css">
    .loading-icon {
       font-size: 3rem;
       color: var(--primary-color);
    }
</style>

<div class="card text-secondary">
    <p:ajaxStatus styleClass="p-d-block p-mb-4">
        <f:facet name="default">
            <h:outputText value="Status: StandBy" />
        </f:facet>

        <f:facet name="start">
            <i class="pi pi-spin pi-spinner loading-icon" aria-hidden="true"></i>
        </f:facet>

        <f:facet name="complete">
            <h:outputText value="Status: Completed" />
        </f:facet>
    </p:ajaxStatus>

    <p:ajaxStatus onstart="PF('statusDialog').show()" onsuccess="PF('statusDialog').hide()"/>

    <p:dialog widgetVar="statusDialog" modal="true" draggable="false" closable="false" resizable="false" showHeader="false">
        <div class="p-text-center">
            <i class="pi pi-spinner loading-icon" aria-hidden="true"></i>
        </div>
    </p:dialog>

    <h:form>
        <p:commandButton value="Send" styleClass="ui-button-outlined ui-button-secondary" />
    </h:form>
</div>