Locale

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

Language
English
English
English
French
German
German
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Arabic
Bulgarian
Bangla
Bosnian
Czech
Greek
Estonian
Persian
Finnish
Danish
Hindi
Indonesian
Icelandic
Croatian
Japanese
Hungarian
Hebrew
Georgian
Central Kurdish
Khmer
Kyrgyz
Kazakh
Lithuanian
Latvian
Malay
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Serbian
Swedish
Thai
Turkish
Ukrainian
Uzbek
Vietnamese
Chinese
Chinese

Input Style

Themes

PrimeUIX
Aura Light Emerald Aura Light Emerald
Aura Dark Emerald Aura Dark Emerald
PrimeOne
Saga Blue Saga Blue
Vela Blue Vela Blue
Arya Blue Arya Blue
Bootstrap
Bootstrap Blue Light Bootstrap Blue Light
Bootstrap Purple Light Bootstrap Purple Light
Bootstrap Blue Dark Bootstrap Blue Dark
Bootstrap Purple Dark Bootstrap Purple Dark
Material Design
Material Indigo Light Material Indigo Light
Material Deep Purple Light Material Deep Purple Light
Material Indigo Dark Material Indigo Dark
Material Deep Purple Dark Material Deep Purple Dark
Material Design Compact
Material Compact Indigo Light Material Compact Indigo Light
Material Compact Deep Purple Light Material Compact Deep Purple Light
Material Compact Indigo Dark Material Compact Indigo Dark
Material Compact Deep Purple Dark Material Compact Deep Purple Dark
Legacy
Nova Light Nova Light
Nova Dark Nova Dark
Nova Colored Nova Colored
Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink

Wizard

Wizard creates a workflow by creating multiple steps out of a single page form. Only current step is processed partially and next step is displayed if current step passes validations. Wizard flow is sequential by default and this can be managed using the optional ajax flowListeners, simply outcome of a flowListener defines the next step to display.

Wizard Tag Documentation

Wizard provides an enhanced UI to implement a workflow easily in a single page. Wizard consists of several child tab components where each tab represents a step in the process.

NameTypeRequiredDefaultDescription
id String false generated Unique identifier of the component in a namingContainer.
rendered boolean false true Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding UIComponent false generated An EL expression referring to a server side UIComponent instance in a backing bean.
widgetVar String false generated ('widget_' + componentClientId) Name of the client side widget.
backLabel String false Back Label of back navigation button.
disableOnAjax boolean false true If true, next and back navigation buttons will be disabled during Ajax requests triggered by them.
effect String false No animation Animation effect to use when showing and hiding wizard panel.
effectDuration int false 400 Duration of the animation effect in milliseconds.
flowListener MethodExpression false Server side listener to invoke when wizard attempts to go forward or back.
highlightCompletedSteps boolean false false If true, all completed steps are highlighted. If false, only the current step is highlighted.
nextLabel String false Next Label of next navigation button.
onback String false Javascript event handler to be invoked when flow goes back.
onnext String false Javascript event handler to be invoked when flow goes forward.
showNavBar boolean false true Specifies visibility of default navigator arrows.
showStepStatus boolean false true Specifies visibility of default step title bar.
step String false Id of the current step in flow.
style String false Inline style of the component.
styleClass String false Style class of the component.
updateModelOnPrev boolean false false If yes, the model will be updated when the "Back" button is clicked.
Loading...
Tag DocumentationNew DocumentationNew Documentation JSDoc
  • Personal
  • Address
  • Contact
  • Confirmation
Personal Details
Firstname: *
Lastname: *
Age:
Skip to last:

Usage


<style>
    .label {
        width: 20%;
        padding: 4px;
    }

    .value {
        width: 80%;
        padding: 4px;
    }

    .grid {
        width: 100%;
    }

    .error {
        color: red;
    }

    .outputLabel {
        font-weight: bold;
    }

    .grid {
        width: 33%;
        padding: 4px;
    }
</style>

<div class="card">
    <h:form>

        <p:growl id="growl" sticky="true" showDetail="true"/>

        <p:wizard flowListener="#{userWizard.onFlowProcess}" widgetVar="wizard">
            <p:tab id="personal" title="Personal">
                <p:focus context="@next"/>
                <p:panel header="Personal Details">
                    <p:messages/>
                    <h:panelGrid columns="2" columnClasses="label, value">
                        <h:outputText value="Firstname: *"/>
                        <p:inputText value="#{userWizard.user.firstname}" required="true" label="Firstname"/>

                        <h:outputText value="Lastname: *"/>
                        <p:inputText value="#{userWizard.user.lastname}" required="true" label="Lastname"/>

                        <h:outputText value="Age: "/>
                        <p:inputText value="#{userWizard.user.age}"/>

                        <h:outputText value="Skip to last: "/>
                        <h:selectBooleanCheckbox value="#{userWizard.skip}"/>
                    </h:panelGrid>
                </p:panel>
            </p:tab>

            <p:tab id="address" title="Address">
                <p:focus context="@next"/>
                <p:panel header="Address Details">
                    <p:messages/>
                    <h:panelGrid columns="2" columnClasses="label, value">
                        <h:outputText value="Street: "/>
                        <p:inputText value="#{userWizard.user.street}"/>

                        <h:outputText value="Postal Code: "/>
                        <p:inputText value="#{userWizard.user.postalCode}"/>

                        <h:outputText value="City: "/>
                        <p:inputText value="#{userWizard.user.city}"/>

                        <h:outputText value="Skip to last: "/>
                        <h:selectBooleanCheckbox value="#{userWizard.skip}"/>
                    </h:panelGrid>
                </p:panel>
            </p:tab>

            <p:tab id="contact" title="Contact">
                <p:focus context="@next"/>
                <p:panel header="Contact Information">
                    <p:messages/>
                    <h:panelGrid columns="2" columnClasses="label, value">
                        <h:outputText value="Email: *"/>
                        <p:inputText value="#{userWizard.user.email}" required="true" label="Email"/>

                        <h:outputText value="Phone: "/>
                        <p:inputText value="#{userWizard.user.phone}"/>

                        <h:outputText value="Additional Info: "/>
                        <p:inputText value="#{userWizard.user.info}"/>
                    </h:panelGrid>
                </p:panel>
            </p:tab>

            <p:tab id="confirm" title="Confirmation">
                <p:focus context="@next"/>
                <p:panel header="Confirmation">
                    <h:panelGrid id="confirmation" columns="3" columnClasses="grid,grid,grid">
                        <h:panelGrid columns="2" columnClasses="label, value">
                            <h:outputText value="Firstname: "/>
                            <h:outputText value="#{userWizard.user.firstname}" styleClass="outputLabel"/>

                            <h:outputText value="Lastname: "/>
                            <h:outputText value="#{userWizard.user.lastname}" styleClass="outputLabel"/>

                            <h:outputText value="Age: "/>
                            <h:outputText value="#{userWizard.user.age}" styleClass="outputLabel"/>
                        </h:panelGrid>

                        <h:panelGrid columns="2" columnClasses="label, value">
                            <h:outputText value="Street: "/>
                            <h:outputText value="#{userWizard.user.street}" styleClass="outputLabel"/>

                            <h:outputText value="Postal: "/>
                            <h:outputText value="#{userWizard.user.postalCode}" styleClass="outputLabel"/>

                            <h:outputText value="City: "/>
                            <h:outputText value="#{userWizard.user.city}" styleClass="outputLabel"/>
                        </h:panelGrid>

                        <h:panelGrid columns="2" columnClasses="label, value">
                            <h:outputText value="Email: "/>
                            <h:outputText value="#{userWizard.user.email}" styleClass="outputLabel"/>

                            <h:outputText value="Phone "/>
                            <h:outputText value="#{userWizard.user.phone}" styleClass="outputLabel"/>

                            <h:outputText value="Info: "/>
                            <h:outputText value="#{userWizard.user.info}" styleClass="outputLabel"/>

                            <h:outputText/>
                            <h:outputText/>
                        </h:panelGrid>
                    </h:panelGrid>

                    <p:commandButton value="Submit" action="#{userWizard.save}" update="growl" process="@this"/>
                </p:panel>
            </p:tab>
        </p:wizard>

    </h:form>
</div>