public final class OmniFaces extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OMNIFACES_DYNAMIC_FORM_ID
Returns the "omnifaces_form" ID of dynamic form.
|
static String |
OMNIFACES_EVENT_PARAM_NAME
Returns the "omnifaces.event" request parameter name.
|
static String |
OMNIFACES_LIBRARY_NAME
Returns the "omnifaces" resource library name.
|
static String |
OMNIFACES_SCRIPT_NAME
Returns the "omnifaces.js" main script name.
|
static String |
PARAM_NAME_SKIP_DEPLOYMENT_EXCEPTION
The boolean context parameter name to skip any OmniFaces deployment exception.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getMessage(String key)
Returns resource bundle message associated with given key from application message bundle as identified by
<message-bundle> in faces-config.xml, or if it is absent, then return it from
OmniFaces internal org.omnifaces.messages bundle. |
static long |
getStartupTime()
Returns startup time in Epoch milli.
|
static String |
getVersion()
Returns OmniFaces version.
|
static boolean |
isSnapshot()
Returns whether current OmniFaces version is a SNAPSHOT or RC version.
|
static boolean |
skipDeploymentException(ServletContext servletContext)
Returns whether the context parameter "org.omnifaces.SKIP_DEPLOYMENT_EXCEPTION" is set to
true. |
public static final String OMNIFACES_LIBRARY_NAME
public static final String OMNIFACES_SCRIPT_NAME
public static final String OMNIFACES_EVENT_PARAM_NAME
public static final String OMNIFACES_DYNAMIC_FORM_ID
public static final String PARAM_NAME_SKIP_DEPLOYMENT_EXCEPTION
true, then any exception thrown by ApplicationInitializer,
ApplicationListener and ApplicationProcessor will be suppressed and won't anymore block the
deployment of the web application.public static String getVersion()
3.4.2.
Snapshot versions will return version in format 3.4.2-SNAPSHOT.
Local development versions (because MANIFEST.MF entry is missing) will return version in format DEV-SNAPSHOT.public static boolean isSnapshot()
public static long getStartupTime()
public static String getMessage(String key)
<message-bundle> in faces-config.xml, or if it is absent, then return it from
OmniFaces internal org.omnifaces.messages bundle.key - The message bundle key.public static boolean skipDeploymentException(ServletContext servletContext)
true.
If this is set to true, then any exception thrown by ApplicationInitializer,
ApplicationListener and ApplicationProcessor will be suppressed and won't anymore block the
deployment of the web application.servletContext - The involved servlet context.true.Copyright © 2012–2022 OmniFaces. All rights reserved.