public class MyfacesConfig extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String | ALWAYS_FORCE_SESSION_CREATIONDefines if a session should be created (if one does not exist) before response rendering. | 
| protected static boolean | ALWAYS_FORCE_SESSION_CREATION_DEFAULT | 
| static String | AUTOCOMPLETE_OFF_VIEW_STATEAdd autocomplete="off" to the view state hidden field. | 
| static String | AUTOMATIC_EXTENSIONLESS_MAPPINGThis parameter enables automatic extensionless mapping for all JSF views. | 
| static boolean | AUTOMATIC_EXTENSIONLESS_MAPPING_DEFAULT | 
| static String | BEAN_BEFORE_JSF_VALIDATIONEnforce f:validateBean to be called first before any JSF validator. | 
| static String | CACHE_EL_EXPRESSIONSIndicates if expressions generated by facelets should be cached or not. | 
| static String | CHECK_ID_PRODUCTION_MODEDefine how duplicate ids are checked when ProjectStage is Production, by default (auto) it only check ids of
 components that does not encapsulate markup (like facelets UILeaf). | 
| static String | CHECK_ID_PRODUCTION_MODE_AUTO | 
| static String | CHECK_ID_PRODUCTION_MODE_TRUE | 
| static String | CLIENT_VIEW_STATE_TIMEOUTDefine the time in minutes where the view state is valid when
 client side state saving is used. | 
| static String | COMPONENT_UNIQUE_IDS_CACHE_SIZESet the size of the cache used to store strings generated using SectionUniqueIdCounter
 for component ids. | 
| static String | COMPRESS_STATE_IN_SESSIONIndicates that the serialized state will be compressed before it is written to the session. | 
| static String | CONFIG_REFRESH_PERIODSet the time in seconds that check for updates of web.xml and faces-config descriptors and 
 refresh the configuration. | 
| static String | DEBUG_PHASE_LISTENEREnable/disable DebugPhaseListener feature, with provide useful information about ValueHolder 
 variables (submittedValue, localValue, value). | 
| static String | DEFAULT_RESPONSE_WRITER_CONTENT_TYPE_MODEDefine the default content type that the default ResponseWriter generates, when no match can be derived from
 HTTP Accept Header. | 
| static String | DELEGATE_FACES_SERVLETDefine an alternate class name that will be used to initialize MyFaces, instead the default 
 javax.faces.webapp.FacesServlet. | 
| static String | EARLY_FLUSH_ENABLED | 
| static String | EL_RESOLVER_COMPARATORDefine a custom comparator class used to sort the ELResolvers. | 
| static String | EL_RESOLVER_PREDICATE | 
| static String | EXPRESSION_FACTORYThis parameter specifies the ExpressionFactory implementation to use. | 
| static String | FACELETS_RESOURCE_RESOLVERClass implementing ResourceResolver interface used to locate facelet resources. | 
| static String | FACES_INIT_PLUGINScomma delimited list of plugin classes which can be hooked into myfaces | 
| static String | FACES_INITIALIZERIndicate the class implementing FacesInitializer interface that will
 be used to setup MyFaces Core contexts. | 
| static String | FLASH_SCOPE_DISABLEDDefines whether flash scope is disabled, preventing add the Flash cookie to the response. | 
| static String | INITIALIZE_ALWAYS_STANDALONEIf this param is set to true, the check for faces servlet mapping is not done | 
| static String | INITIALIZE_SKIP_JAR_FACES_CONFIG_SCANIf the flag is true, the algoritm skip jar scanning for faces-config files to check if the current
 application requires FacesServlet to be added dynamically (servlet spec 3). | 
| static String | INJECTION_PROVIDERDefine the class implementing InjectionProvider interface to handle dependendy injection,
 PostConstruct and PreDestroy callbacks. | 
| static String | JSP_SUFFIX | 
| static String | LAZY_LOAD_CONFIG_OBJECTSIndicate if the classes associated to components, converters, validators or behaviors
 should be loaded as soon as they are added to the current application instance or instead
 loaded in a lazy way. | 
| static String | LOG_WEB_CONTEXT_PARAMSIndicate if log all web config params should be done before initialize the webapp. | 
| static String | MARK_INITIAL_STATE_WHEN_APPLY_BUILD_VIEW | 
| static String | NUMBER_OF_FACES_FLOW_CLIENT_WINDOW_IDS_IN_SESSIONIndicate the max number of client window ids stored into session by faces flow. | 
| static String | NUMBER_OF_FLASH_TOKENS_IN_SESSIONIndicate the max number of flash tokens stored into session. | 
| static String | NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSIONIndicates the amount of views (default is not active) that should be stored in session between sequential
 POST or POST-REDIRECT-GET if org.apache.myfaces.USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION is true. | 
| static Integer | NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION_DEFAULT | 
| static String | NUMBER_OF_VIEWS_IN_SESSIONDefines the amount (default = 20) of the latest views are stored in session. | 
| static int | NUMBER_OF_VIEWS_IN_SESSION_DEFAULTDefault value for  org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSIONcontext parameter. | 
| static String | RANDOM_KEY_IN_CSRF_SESSION_TOKENDefines how to generate the csrf session token. | 
| static String | RANDOM_KEY_IN_CSRF_SESSION_TOKEN_RANDOM | 
| static String | RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM | 
| static String | RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKENAdds a random key to the generated view state session token. | 
| static String | RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_LENGTHSet the default length of the random key added to the view state session token. | 
| static String | RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_RANDOM | 
| static String | RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM | 
| static String | RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM_ALGORITHMSets the random algorithm to initialize the secure random id generator. | 
| static String | RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM_CLASSSets the random class to initialize the secure random id generator. | 
| static String | RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM_PROVIDERSets the random provider to initialize the secure random id generator. | 
| static String | RANDOM_KEY_IN_WEBSOCKET_SESSION_TOKENDefines how to generate the csrf session token. | 
| static String | RANDOM_KEY_IN_WEBSOCKET_SESSION_TOKEN_RANDOM | 
| static String | RANDOM_KEY_IN_WEBSOCKET_SESSION_TOKEN_SECURE_RANDOM | 
| static String | REFRESH_TRANSIENT_BUILD_ON_PSSIndicate if the facelet associated to the view should be reapplied when the view is refreshed. | 
| static String | REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATEEnable or disable a special mode that enable full state for parent components containing c:if, c:forEach, 
 c:choose and ui:include with src=ELExpression. | 
| static String | RENDER_CLEAR_JAVASCRIPT_FOR_BUTTONThis param renders the clear javascript on button necessary only for
 compatibility with hidden fields feature of myfaces. | 
| static String | RENDER_CLIENTBEHAVIOR_SCRIPTS_AS_STRINGDefines if the clientbehavior scripts are passed as string or function to the jsf.util.chain. | 
| static boolean | RENDER_CLIENTBEHAVIOR_SCRIPTS_AS_STRING_DEFAULT | 
| static String | RENDER_FORM_VIEW_STATE_AT_BEGINThis param makes h:form component to render the view state and other hidden fields
 at the beginning of the form. | 
| static String | RENDER_VIEWSTATE_IDDefine if the input field that should store the state (javax.faces.ViewState) should render 
 id="javax.faces.ViewState". | 
| static String | RESOURCE_BUFFER_SIZEDefine the default buffer size that is used between Resource.getInputStream() and 
 httpServletResponse.getOutputStream() when rendering resources using the default
 ResourceHandler. | 
| static String | RESOURCE_BUNDLE_CONTROLDefines the  ResourceBundle.Controlto use for allResourceBundle.getBundle(java.lang.String)calls. | 
| static String | RESOURCE_CACHE_LAST_MODIFIEDDefines if the last-modified should be cached of the resources when the ProjectStage is Production. | 
| static String | RESOURCE_HANDLER_CACHE_ENABLEDEnable or disable the cache used to "remember" if a resource handled by 
 the default ResourceHandler exists or not. | 
| static String | RESOURCE_HANDLER_CACHE_SIZEControls the size of the cache used to check if a resource exists or not. | 
| static String | RESOURCE_MAX_TIME_EXPIRESSet the max time in miliseconds set on the "Expires" header for a resource rendered by 
 the default ResourceHandler. | 
| static String | SCAN_PACKAGESServlet context init parameter which defines which packages to scan
 for beans, separated by commas. | 
| static String | STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAMEAllow slash in the library name of a Resource. | 
| static String | STRICT_JSF_2_CC_EL_RESOLVERChange default getType() behavior for composite component EL resolver, from return null 
 (see JSF 2_0 spec section 5_6_2_2) to
 use the metadata information added by composite:attribute, ensuring components working with 
 chained EL expressions to find the
 right type when a getType() is called over the source EL expression. | 
| static String | STRICT_JSF_2_FACELETS_COMPATIBILITYThis param makes components like c:set, ui:param and templating components like ui:decorate,
 ui:composition and ui:include to behave like the ones provided originally in facelets 1_1_x. | 
| static String | STRICT_JSF_2_ORIGIN_HEADER_APP_PATHThis parameter specifies whether or not the Origin header app path should be checked | 
| static String | STRICT_JSF_2_VIEW_NOT_FOUNDIf this param is set to true, a check will be done in Restore View Phase to check
 if the viewId exists or not and if it does not exists, a 404 response will be thrown. | 
| static String | STRICT_XHTML_LINKSUse "&" entity instead a plain "&" character within HTML. | 
| static String | SUPPORT_EL_3_IMPORT_HANDLERThis parameter specifies whether or not the ImportHandler will be supported | 
| static String | SUPPORT_JSPIf set false, myfaces won't support JSP. | 
| static String | USE_CDI_FOR_ANNOTATION_SCANNINGDefines if CDI should be used for annotation scanning to improve the startup performance. | 
| static String | USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSIONAllow use flash scope to keep track of the views used in session and the previous ones,
 so server side state saving can delete old views even if POST-REDIRECT-GET pattern is used. | 
| static String | VALIDATEValidate if the managed beans and navigations rules are correct. | 
| static String | VALIDATE_XMLIf set to  true, tag library XML files and faces config XML files using schema 
 will be validated during application start up | 
| static String | VIEW_UNIQUE_IDS_CACHE_ENABLEDEnable or disable a cache used to "remember" the generated facelets unique ids and reduce 
 the impact on memory usage, only active if javax.faces.FACELETS_REFRESH_PERIOD is -1 (no refresh). | 
| static String | VIEWID_CACHE_SIZE | 
| static String | VIEWID_DERIVE_CACHE_ENABLED | 
| static String | VIEWID_EXISTS_CACHE_ENABLED | 
| static String | VIEWID_PROTECTED_CACHE_ENABLED | 
| static String | WEBSOCKET_ENDPOINT_PORTIndicates the port used for websocket connections. | 
| static String | WEBSOCKET_MAX_CONNECTIONS | 
| static Integer | WEBSOCKET_MAX_CONNECTIONS_DEFAULT | 
| static String | WEBSOCKET_MAX_IDLE_TIMEOUT | 
| static String | WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAGWrap content inside script with xml comment to prevent old browsers to display it. | 
| static String | WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWAREWrap exception caused by calls to EL expressions, so information like
 the location, expression string and tag name can be retrieved by
 the ExceptionHandler implementation and used to output meaningful information about itself. | 
| Constructor and Description | 
|---|
| MyfacesConfig() | 
@JSFWebConfigParam(defaultValue="2",
                   since="1.1",
                   classType="java.lang.Long")
public static final String CONFIG_REFRESH_PERIOD
@JSFWebConfigParam(defaultValue="true",
                   expectedValues="true, false, on, off, yes, no",
                   since="1.1",
                   ignoreUpperLowerCase=true,
                   group="state")
public static final String RENDER_VIEWSTATE_ID
@JSFWebConfigParam(defaultValue="true",
                   expectedValues="true, false, on, off, yes, no",
                   since="1.1.6",
                   ignoreUpperLowerCase=true,
                   group="render")
public static final String STRICT_XHTML_LINKS
W3C recommends to use the "&" entity instead of a plain "&" character within HTML. This also applies to attribute values and thus to the "href" attribute of <a> elements as well. Even more, when XHTML is used as output the usage of plain "&" characters is forbidden and would lead to invalid XML code. Therefore, since version 1.1.6 MyFaces renders the correct "&" entity for links.
The init parameter org.apache.myfaces.STRICT_XHTML_LINKS makes it possible to restore the old behaviour and to make MyFaces "bug compatible" to the Sun RI which renders plain "&" chars in links as well.
See: HTML 4.01 Specification See: Jira: MYFACES-1774
@JSFWebConfigParam(defaultValue="false",
                   expectedValues="true, false, on, off, yes, no",
                   since="1.2.3",
                   ignoreUpperLowerCase=true,
                   group="render")
public static final String RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON
@JSFWebConfigParam(since="1.2.7") public static final String DELEGATE_FACES_SERVLET
This helps MyFaces to detect the mappings and other additional configuration used to setup the environment, and prevent abort initialization if no FacesServlet config is detected.
@JSFWebConfigParam(since="2.0",
                   defaultValue="auto",
                   expectedValues="true,false,auto",
                   tags="performance",
                   ignoreUpperLowerCase=true,
                   group="state")
public static final String REFRESH_TRANSIENT_BUILD_ON_PSS
This param is only valid when partial state saving is on. If this is set as true, the tag-handlers are always reapplied before render view, like in facelets 1.1.x, allowing c:if work correctly to "toggle" components based on a value changed on invoke application phase. If the param is set as "auto", the implementation check if c:if, c:forEach, c:choose and ui:include with src=ELExpression is used on the page and if that so, mark the view to be refreshed.
@JSFWebConfigParam(since="2.0",
                   defaultValue="false",
                   expectedValues="true, false, on, off, yes, no",
                   tags="performance",
                   ignoreUpperLowerCase=true,
                   group="state")
public static final String REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE
This param is only valid when partial state saving is on. If this is set as true, parent components containing c:if, c:forEach, c:choose and ui:include with src=ELExpression are marked to be restored fully, so state is preserved between request.
@JSFWebConfigParam(since="2.0",
                   expectedValues="true, false, on, off, yes, no",
                   ignoreUpperLowerCase=true)
public static final String VALIDATE_XML
true, tag library XML files and faces config XML files using schema 
 will be validated during application start up@JSFWebConfigParam(since="2.0.1",
                   expectedValues="true, false, on, off, yes, no",
                   defaultValue="false",
                   ignoreUpperLowerCase=true,
                   group="render")
public static final String WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG
@JSFWebConfigParam(since="2.0.8") public static final String DEBUG_PHASE_LISTENER
@JSFWebConfigParam(since="2.0.10",
                   expectedValues="true, false",
                   defaultValue="false",
                   group="EL")
public static final String STRICT_JSF_2_CC_EL_RESOLVER
@JSFWebConfigParam(since="2.0.11,2.1.5",
                   expectedValues="text/html, application/xhtml+xml",
                   defaultValue="text/html",
                   group="render")
public static final String DEFAULT_RESPONSE_WRITER_CONTENT_TYPE_MODE
@JSFWebConfigParam(defaultValue="true",
                   since="2.0.13, 2.1.7",
                   expectedValues="true, false",
                   group="viewhandler",
                   tags="performance",
                   desc="Enable or disable a cache used to \'remember\' the generated facelets unique ids and reduce the impact over memory usage.")
public static final String VIEW_UNIQUE_IDS_CACHE_ENABLED
@JSFWebConfigParam(defaultValue="100",
                   since="2.0.13, 2.1.7",
                   group="viewhandler",
                   tags="performance")
public static final String COMPONENT_UNIQUE_IDS_CACHE_SIZE
@JSFWebConfigParam(since="2.0.13,2.1.7",
                   expectedValues="true,false",
                   defaultValue="true",
                   desc="If set false, myfaces won\'t support JSP. JSP are deprecated in JSF 2.X. Default value is true.",
                   group="EL",
                   tags="performance ")
public static final String SUPPORT_JSP
@JSFWebConfigParam(since="2.1.13",
                   defaultValue="false",
                   expectedValues="true,false",
                   group="viewhandler")
public static final String STRICT_JSF_2_VIEW_NOT_FOUND
@JSFWebConfigParam(defaultValue="false",
                   since="2.2.0",
                   expectedValues="true, false",
                   group="render",
                   tags="performance",
                   desc="Enable or disable an early flush which allows to send e.g. the HTML-Head to the client while the rest gets rendered. It\'s a well known technique to reduce the time for loading a page.")
public static final String EARLY_FLUSH_ENABLED
@JSFWebConfigParam(since="2.2.0",
                   defaultValue="false",
                   expectedValues="true,false",
                   group="viewhandler")
public static final String STRICT_JSF_2_FACELETS_COMPATIBILITY
@JSFWebConfigParam(since="2.2.4",
                   defaultValue="false",
                   expectedValues="true,false",
                   group="render")
public static final String RENDER_FORM_VIEW_STATE_AT_BEGIN
@JSFWebConfigParam(defaultValue="false",
                   since="2.0.5")
public static final String FLASH_SCOPE_DISABLED
This is useful for applications that does not require to use flash scope, and instead uses other scopes.
@JSFWebConfigParam(defaultValue="20",
                   since="1.1",
                   classType="java.lang.Integer",
                   group="state",
                   tags="performance")
public static final String NUMBER_OF_VIEWS_IN_SESSION
Only applicable if state saving method is "server" (= default).
public static final int NUMBER_OF_VIEWS_IN_SESSION_DEFAULT
org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION context parameter.@JSFWebConfigParam(since="2.0.6",
                   classType="java.lang.Integer",
                   group="state",
                   tags="performance",
                   defaultValue="4")
public static final String NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION
Only applicable if state saving method is "server" (= default). For example, if this param has value = 2 and in your custom webapp there is a form that is clicked 3 times, only 2 views will be stored and the third one (the one stored the first time) will be removed from session, even if the view can store more sessions org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION. This feature becomes useful for multi-window applications. where without this feature a window can swallow all view slots so the other ones will throw ViewExpiredException.
public static final Integer NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION_DEFAULT
@JSFWebConfigParam(since="2.2.6",
                   group="state",
                   tags="performance")
public static final String NUMBER_OF_FLASH_TOKENS_IN_SESSION
@JSFWebConfigParam(since="2.2.6",
                   group="state",
                   tags="performance")
public static final String NUMBER_OF_FACES_FLOW_CLIENT_WINDOW_IDS_IN_SESSION
@JSFWebConfigParam(since="2.2.9",
                   defaultValue="false",
                   expectedValues="true,false",
                   group="EL")
public static final String SUPPORT_EL_3_IMPORT_HANDLER
@JSFWebConfigParam(since="2.3",
                   defaultValue="false",
                   expectedValues="true,false")
public static final String STRICT_JSF_2_ORIGIN_HEADER_APP_PATH
@JSFWebConfigParam(since="2.1.6, 2.0.12",
                   defaultValue="false",
                   expectedValues="true, false",
                   group="resources")
public static final String STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME
@JSFWebConfigParam(since="2.1.10, 2.0.16",
                   defaultValue="2048",
                   group="resources")
public static final String RESOURCE_BUFFER_SIZE
@JSFWebConfigParam(since="2.0",
                   defaultValue="false",
                   expectedValues="true, false")
public static final String VALIDATE
For example, it checks if the managed bean classes really exists, or if the navigation rules points to existing view files.
@JSFWebConfigParam(since="2.2.9",
                   tags="performance",
                   defaultValue="false")
public static final String USE_CDI_FOR_ANNOTATION_SCANNING
@JSFWebConfigParam(defaultValue="500",
                   since="2.0.2",
                   group="resources",
                   classType="java.lang.Integer",
                   tags="performance")
public static final String RESOURCE_HANDLER_CACHE_SIZE
See org.apache.myfaces.RESOURCE_HANDLER_CACHE_ENABLED for details.
@JSFWebConfigParam(defaultValue="true",
                   since="2.0.2",
                   group="resources",
                   expectedValues="true,false",
                   tags="performance")
public static final String RESOURCE_HANDLER_CACHE_ENABLED
@JSFWebConfigParam(since="2.0") public static final String SCAN_PACKAGES
@JSFWebConfigParam(since="2.3") public static final String WEBSOCKET_ENDPOINT_PORT
@JSFWebConfigParam(defaultValue="300000") public static final String WEBSOCKET_MAX_IDLE_TIMEOUT
@JSFWebConfigParam(since="2.2.0",
                   expectedValues="secureRandom, random",
                   defaultValue="secureRandom",
                   group="state")
public static final String RANDOM_KEY_IN_WEBSOCKET_SESSION_TOKEN
public static final String RANDOM_KEY_IN_WEBSOCKET_SESSION_TOKEN_SECURE_RANDOM
public static final String RANDOM_KEY_IN_WEBSOCKET_SESSION_TOKEN_RANDOM
@JSFWebConfigParam(since="2.1.9, 2.0.15",
                   defaultValue="0",
                   group="state")
public static final String CLIENT_VIEW_STATE_TIMEOUT
public static final String RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM
public static final String RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_RANDOM
@JSFWebConfigParam(since="2.1.9, 2.0.15",
                   expectedValues="secureRandom, random",
                   defaultValue="secureRandom",
                   group="state")
public static final String RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN
@JSFWebConfigParam(since="2.1.9, 2.0.15",
                   defaultValue="8",
                   group="state")
public static final String RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_LENGTH
@JSFWebConfigParam(since="2.1.9, 2.0.15",
                   group="state")
public static final String RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM_CLASS
@JSFWebConfigParam(since="2.1.9, 2.0.15",
                   group="state")
public static final String RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM_PROVIDER
@JSFWebConfigParam(since="2.1.9, 2.0.15",
                   defaultValue="SHA1PRNG",
                   group="state")
public static final String RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM_ALGORITHM
public static final String RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM
public static final String RANDOM_KEY_IN_CSRF_SESSION_TOKEN_RANDOM
@JSFWebConfigParam(since="2.2.0",
                   expectedValues="secureRandom, random",
                   defaultValue="secureRandom",
                   group="state")
public static final String RANDOM_KEY_IN_CSRF_SESSION_TOKEN
@JSFWebConfigParam(defaultValue="true",
                   since="1.1",
                   expectedValues="true,false",
                   group="state",
                   tags="performance")
public static final String COMPRESS_STATE_IN_SESSION
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default).
 If true (default) the serialized state will be compressed before it is written to the session.
 If false the state will not be compressed.@JSFWebConfigParam(since="2.0.6",
                   defaultValue="false",
                   expectedValues="true, false",
                   group="state")
public static final String USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION
Only applicable if state saving method is "server" (= default). The default value is false.
@JSFWebConfigParam(since="2.2.8, 2.1.18, 2.0.24",
                   expectedValues="true, false",
                   defaultValue="true",
                   group="state")
public static final String AUTOCOMPLETE_OFF_VIEW_STATE
@JSFWebConfigParam(since="2.0",
                   defaultValue="604800000",
                   group="resources",
                   tags="performance")
public static final String RESOURCE_MAX_TIME_EXPIRES
@JSFWebConfigParam(defaultValue="true",
                   since="2.0",
                   tags="performance")
public static final String LAZY_LOAD_CONFIG_OBJECTS
@JSFWebConfigParam(since="1.2.10, 2.0.2",
                   group="EL",
                   desc="The Class of an Comparator<ELResolver> implementation.")
public static final String EL_RESOLVER_COMPARATOR
This is useful when it is necessary to put an ELResolver on top of other resolvers. Note set this param override the default ordering described by JSF spec section 5.
@JSFWebConfigParam(since="2.1.0",
                   group="EL",
                   desc="The Class of an java.util.function.Predicate<ELResolver> implementation.If used and returns false for a ELResolver instance, such resolver will not be installed in ELResolvers chain. Use with caution - can break functionality defined in JSF specification \'ELResolver Instances Provided by Faces\'")
public static final String EL_RESOLVER_PREDICATE
@JSFWebConfigParam(defaultValue="500",
                   since="2.0.2",
                   group="viewhandler",
                   tags="performance",
                   classType="java.lang.Integer",
                   desc="Controls the size of the viewId related caches: VIEWID_EXISTS_CACHE_ENABLED, VIEWID_PROTECTED_CACHE_ENABLED, VIEWID_DERIVE_CACHE_ENABLED")
public static final String VIEWID_CACHE_SIZE
@JSFWebConfigParam(defaultValue="true",
                   since="2.0.2",
                   expectedValues="true, false",
                   group="viewhandler",
                   tags="performance",
                   desc="Enable or disable the cache used to \'remember\' if a view exists or not and reduce the impact of sucesive calls to ExternalContext.getResource().")
public static final String VIEWID_EXISTS_CACHE_ENABLED
@JSFWebConfigParam(defaultValue="true",
                   since="2.3-next",
                   expectedValues="true, false",
                   group="viewhandler",
                   tags="performance",
                   desc="Enable or disable the cache used to \'remember\' if a view is protected or not.")
public static final String VIEWID_PROTECTED_CACHE_ENABLED
@JSFWebConfigParam(defaultValue="true",
                   since="2.3-next",
                   expectedValues="true, false",
                   group="viewhandler",
                   tags="performance",
                   desc="Enable or disable the cache used to \'remember\' the derived viewId from the rawViewId.")
public static final String VIEWID_DERIVE_CACHE_ENABLED
@JSFWebConfigParam(defaultValue=".jsp",
                   since="2.3",
                   group="viewhandler")
public static final String JSP_SUFFIX
@JSFWebConfigParam(defaultValue="false",
                   expectedValues="true, false",
                   since="2.2.10",
                   group="validation")
public static final String BEAN_BEFORE_JSF_VALIDATION
@JSFWebConfigParam(since="2.0") public static final String FACES_INIT_PLUGINS
@JSFWebConfigParam(since="2.2.10",
                   expectedValues="true, false",
                   defaultValue="false",
                   tags="performance")
public static final String INITIALIZE_SKIP_JAR_FACES_CONFIG_SCAN
@JSFWebConfigParam(since="2.0.3",
                   defaultValue="false")
public static final String INITIALIZE_ALWAYS_STANDALONE
@JSFWebConfigParam(since="1.2.7",
                   group="EL")
public static final String EXPRESSION_FACTORY
@JSFWebConfigParam(since="2.0.12, 2.1.6",
                   defaultValue="auto",
                   expectedValues="true, auto, false",
                   group="state",
                   tags="performance")
public static final String CHECK_ID_PRODUCTION_MODE
According to specification, identifiers must be unique within the scope of the nearest ancestor to the component that is a naming container.
public static final String CHECK_ID_PRODUCTION_MODE_TRUE
public static final String CHECK_ID_PRODUCTION_MODE_AUTO
@JSFWebConfigParam(since="2.1",
                   defaultValue="false",
                   expectedValues="true, false",
                   tags="performance")
public static final String MARK_INITIAL_STATE_WHEN_APPLY_BUILD_VIEW
@JSFWebConfigParam(since="2.0",
                   alias="facelets.RESOURCE_RESOLVER")
public static final String FACELETS_RESOURCE_RESOLVER
@JSFWebConfigParam(since="2.0.8",
                   defaultValue="noCache",
                   expectedValues="noCache, strict, allowCset, always, alwaysRecompile",
                   group="EL",
                   tags="performance")
public static final String CACHE_EL_EXPRESSIONS
@JSFWebConfigParam(since="2.0.9, 2.1.3",
                   defaultValue="true",
                   expectedValues="true, false")
public static final String WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWARE
Note in some cases this will wrap the original javax.el.ELException, so the information will not be on the stack trace unless ExceptionHandler retrieve checking if the exception implements ContextAware interface and calling getWrapped() method.
@JSFWebConfigParam(since="2.3-next",
                   defaultValue="true",
                   expectedValues="true, false")
public static final String RESOURCE_CACHE_LAST_MODIFIED
@JSFWebConfigParam(expectedValues="true, auto, false",
                   defaultValue="auto")
public static final String LOG_WEB_CONTEXT_PARAMS
If is set in "auto" mode, web config params are only logged on "Development" and "Production" project stages.
@JSFWebConfigParam(since="2.3",
                   expectedValues="true, false",
                   defaultValue="false")
public static final String AUTOMATIC_EXTENSIONLESS_MAPPING
public static final boolean AUTOMATIC_EXTENSIONLESS_MAPPING_DEFAULT
@JSFWebConfigParam(since="2.0.1",
                   desc="Class name of a custom FacesInitializer implementation.")
public static final String FACES_INITIALIZER
This is used when some custom task must be done specifically when a myfaces web context is initialized or destroyed, or when MyFaces should be initialized in some custom environment.
@JSFWebConfigParam(name="org.apache.myfaces.spi.InjectionProvider",
                   since="2.2")
public static final String INJECTION_PROVIDER
This also can be configured using a SPI entry (/META-INF/services/...).
@JSFWebConfigParam(name="org.apache.myfaces.WEBSOCKET_MAX_CONNECTIONS",
                   since="2.3")
public static final String WEBSOCKET_MAX_CONNECTIONS
public static final Integer WEBSOCKET_MAX_CONNECTIONS_DEFAULT
@JSFWebConfigParam(name="org.apache.myfaces.RENDER_CLIENTBEHAVIOR_SCRIPTS_AS_STRING",
                   since="2.3-next",
                   defaultValue="false")
public static final String RENDER_CLIENTBEHAVIOR_SCRIPTS_AS_STRING
public static final boolean RENDER_CLIENTBEHAVIOR_SCRIPTS_AS_STRING_DEFAULT
@JSFWebConfigParam(since="2.3.6",
                   defaultValue="false",
                   expectedValues="true,false")
public static final String ALWAYS_FORCE_SESSION_CREATION
protected static final boolean ALWAYS_FORCE_SESSION_CREATION_DEFAULT
@JSFWebConfigParam(since="2.3-next") public static final String RESOURCE_BUNDLE_CONTROL
ResourceBundle.Control to use for all
 ResourceBundle.getBundle(java.lang.String) calls.public static MyfacesConfig getCurrentInstance()
public static MyfacesConfig getCurrentInstance(FacesContext facesContext)
public static MyfacesConfig getCurrentInstance(ExternalContext extCtx)
public boolean isMyfacesImplAvailable()
public boolean isRiImplAvailable()
public boolean isStrictJsf2AllowSlashLibraryName()
public long getConfigRefreshPeriod()
public boolean isRenderViewStateId()
public boolean isStrictXhtmlLinks()
public boolean isRenderClearJavascriptOnButton()
public String getDelegateFacesServlet()
public boolean isRefreshTransientBuildOnPSS()
public boolean isRefreshTransientBuildOnPSSAuto()
public boolean isRefreshTransientBuildOnPSSPreserveState()
public boolean isValidateXML()
public boolean isWrapScriptContentWithXmlCommentTag()
public boolean isDebugPhaseListenerEnabled()
public boolean isStrictJsf2CCELResolver()
public String getDefaultResponseWriterContentTypeMode()
public boolean isViewUniqueIdsCacheEnabled()
public int getComponentUniqueIdsCacheSize()
public boolean isSupportJSP()
public boolean isStrictJsf2ViewNotFound()
public boolean isEarlyFlushEnabled()
public boolean isStrictJsf2FaceletsCompatibility()
public boolean isRenderFormViewStateAtBegin()
public boolean isFlashScopeDisabled()
public Integer getNumberOfViewsInSession()
public Integer getNumberOfSequentialViewsInSession()
public Integer getNumberOfFlashTokensInSession()
public Integer getNumberOfFacesFlowClientWindowIdsInSession()
public boolean isSupportEL3ImportHandler()
public boolean isStrictJsf2OriginHeaderAppPath()
public int getResourceBufferSize()
public boolean isUseCdiForAnnotationScanning()
public boolean isResourceHandlerCacheEnabled()
public int getResourceHandlerCacheSize()
public String getScanPackages()
public long getWebsocketMaxIdleTimeout()
public Integer getWebsocketEndpointPort()
public long getClientViewStateTimeout()
public String getRandomKeyInViewStateSessionToken()
public int getRandomKeyInViewStateSessionTokenLength()
public String getRandomKeyInViewStateSessionTokenSecureRandomClass()
public String getRandomKeyInViewStateSessionTokenSecureRandomProvider()
public String getRandomKeyInViewStateSessionTokenSecureRandomAlgorithm()
public String getRandomKeyInCsrfSessionToken()
public boolean isSerializeStateInSession()
public boolean isCompressStateInSession()
public boolean isUseFlashScopePurgeViewsInSession()
public boolean isAutocompleteOffViewState()
public long getResourceMaxTimeExpires()
public boolean isLazyLoadConfigObjects()
public String getElResolverComparator()
public String getElResolverPredicate()
public int getViewIdCacheSize()
public String getJspSuffix()
public boolean isBeanBeforeJsfValidation()
public String getRandomKeyInWebsocketSessionToken()
public String getFacesInitPlugins()
public boolean isInitializeSkipJarFacesConfigScan()
public String getExpressionFactory()
public String getCheckIdProductionMode()
public boolean isPartialStateSaving()
public String[] getFullStateSavingViewIds()
public int getFaceletsBufferSize()
public boolean isMarkInitialStateWhenApplyBuildView()
public String getResourceResolver()
public String[] getViewSuffix()
public String[] getFaceletsViewMappings()
public String getFaceletsViewSuffix()
public boolean isViewIdExistsCacheEnabled()
public boolean isViewIdProtectedCacheEnabled()
public boolean isViewIdDeriveCacheEnabled()
public ELExpressionCacheMode getELExpressionCacheMode()
public boolean isWrapTagExceptionsAsContextAware()
public boolean isResourceCacheLastModified()
public boolean isLogWebContextParams()
public int getWebsocketMaxConnections()
public boolean isRenderClientBehaviorScriptsAsString()
public boolean isAlwaysForceSessionCreation()
public ProjectStage getProjectStage()
public ResourceBundle.Control getResourceBundleControl()
public boolean isAutomaticExtensionlessMapping()
Copyright © 2022 The Apache Software Foundation. All rights reserved.