• Settings
    • 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
  • Resources
Theme
Theme
Preset primefaces.THEME
Apple Liquid Glass style: translucent overlays, menus and bars that blur the page behind them, capsule buttons.
Color scheme color-scheme
Input style p-input-filled
Density data-p-density
Direction primefaces.DIR
Colors
Primary --p-primary-base
Surface --p-surface-*
Shape and motion
Button shape --p-button-border-radius
Shadows --p-*-shadow
Animations --p-transition-duration
Ripple --p-ripple-opacity
Border radius --p-border-radius-*
Typography
Focus ring
Form field
CSS
Only the tokens that differ from the preset.

                        
                    

Client Side Validation Event

Validations can be triggered instantly without needing a button/link click using p:clientValidator.

Value:
Value:

Usage


<div class="card">
    <h:form>
        <div class="formgrid grid p-fluid">
            <div class="field col-12 md:col-6 xl:col-4">
                <p:outputLabel for="text" value="Text: (Change)"/>
                <div class="flex align-items-center gap-2">
                    <p:inputText id="text" value="#{validationView.text}" required="true">
                        <f:validateLength minimum="2" maximum="5"/>
                        <p:clientValidator/>
                    </p:inputText>
                    <p:message for="text" display="icon"/>
                </div>
                <small>Value: <h:outputText value="#{validationView.text}"/></small>
            </div>
            <div class="field col-12 md:col-6 xl:col-4">
                <p:outputLabel for="integer" value="Integer: (Keyup)"/>
                <div class="flex align-items-center gap-2">
                    <p:inputText id="integer" value="#{validationView.integer}">
                        <p:clientValidator event="keyup"/>
                    </p:inputText>
                    <p:message for="integer" display="icon"/>
                </div>
                <small>Value: <h:outputText value="#{validationView.integer}"/></small>
            </div>
        </div>

        <p:commandButton value="Save" ajax="false" icon="pi pi-check" validateClient="true" styleClass="mt-3" />
    </h:form>
</div>