ImportConstants

In older EL versions (< 3.0), it's not possible to use constants or any other static fields/methods in an EL expression.
As it is not really "cool" to create beans with getter/setter for each constants class, we provide an utils tag which allows to import constant fields in a page.

The constants can be accessed via the name of the class (default setting) or via a custom name (var attribute).

Documentation
LIBRARY: primefaces
DOWNLOAD_COOKIE: primefaces.download
<p:importConstants type="org.primefaces.util.Constants" var="PFConstants" /> 

LIBRARY:  
<h:outputText value="#{PFConstants.LIBRARY}" />
<br />
DOWNLOAD_COOKIE:
<h:outputText value="#{PFConstants.DOWNLOAD_COOKIE}" />

FREE THEMES

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

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.