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

                        
                    

ImportEnum

ImportEnum imports the values of an enum into a page, so that they can be used in EL expressions without a bean that offers a getter for them. The values are accessed via the name of the class (default) or via a custom name defined with var, as here. The key ALL_VALUES returns all values of the enum.

ImportEnum Tag Documentation

Utility tag to import enums.

NameTypeRequiredDefaultDescription
allSuffix String false ALL_VALUES Deprecated. Use the key ALL_VALUES to access all values, which is and was always available.The suffix mapping for an array with all enum values.
var String false Name of the class without package. The EL variable which can be used to obtain the constants.
type String true The enum class.
Loading...
Development
Development
ALL_VALUES

You can use the special key ALL_VALUES to access all enum values.

DevelopmentProductionSystemTestUnitTest

Usage


<div class="card">
    <p:importEnum type="jakarta.faces.application.ProjectStage" var="FacesProjectStages" />

    <h5 class="mt-0">Development</h5>
    <h:outputText value="#{FacesProjectStages.Development}" />

    <h5>ALL_VALUES</h5>
    <p>You can use the special key ALL_VALUES to access all enum values.</p>
    <ui:repeat var="current" value="#{FacesProjectStages.ALL_VALUES}">
        <h:outputText value="#{current}" styleClass="mb-2 block"/>
    </ui:repeat>
</div>