• 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.

                        
                    

Dialog Framework

A dialog can be opened from another dialog. The demo has 3 levels of nested dialogs; the last one returns data to the root page, which receives it in the listener of the dialogReturn event. The first dialog is opened by a button, a link and a menu item; the second button passes an object via the flash scope.

DialogReturn with Button
DialogReturn with Link
View
DialogReturn with a Menu

Usage


<h:form id="rootform">
    <p:growl id="growl" showDetail="true"/>

    <div class="card">
        <h5>DialogReturn with Button</h5>
        <p:commandButton id="btn" value="View" icon="pi pi-home" action="#{dfRootView.openLevel1}">
            <p:ajax event="dialogReturn" listener="#{dfRootView.onReturnFromLevel1}" update="growl"/>
        </p:commandButton>
        <p:commandButton id="btnPlusFlash" value="View and pass object via flash" icon="pi pi-home" action="#{dfRootView.openLevel1WithFlash}" styleClass="ml-2">
            <p:ajax event="dialogReturn" listener="#{dfRootView.onReturnFromLevel1}" update="growl"/>
        </p:commandButton>
    </div>

    <div class="card">
        <h5>DialogReturn with Link</h5>
        <p:commandLink id="lnk" value="View" action="#{dfRootView.openLevel1}" styleClass="font-bold">
            <p:ajax event="dialogReturn" listener="#{dfRootView.onReturnFromLevel1}" update="growl"/>
        </p:commandLink>
    </div>

    <div class="card">
        <h5>DialogReturn with a Menu</h5>
        <p:menu>
            <p:submenu label="Dialog Framework">
                <p:menuitem value="View" action="#{dfRootView.openLevel1}">
                    <p:ajax event="dialogReturn" listener="#{dfRootView.onReturnFromLevel1}" update="growl"/>
                </p:menuitem>
            </p:submenu>
        </p:menu>
    </div>

</h:form>