Class MojarraProperties
- java.lang.Object
- 
- org.joinfaces.autoconfigure.mojarra.MojarraProperties
 
- 
- All Implemented Interfaces:
- ServletContextInitParameterProperties
 
 @ConfigurationProperties(prefix="joinfaces.mojarra") public class MojarraProperties extends Object implements ServletContextInitParameterProperties Configuration properties of Mojarra. Taken from https://balusc.omnifaces.org/2015/09/what-mojarra-context-parameters-are.html
- 
- 
Constructor SummaryConstructors Constructor Description MojarraProperties()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetAllowedHttpMethods()A white space separated list of case sensitive HTTP method names that are allowed to be processed by this servlet.BooleangetAllowTextChildren()If true, allow children of h:inputText and h:outputText to be rendered.StringgetAnnotationScanPackages()The value of this context init parameter is a whitespace separated list of values that control which class packages are scanned for javax.faces annotations.BooleangetAutoCompleteOffOnViewState()If false, don't use autocomplete="off" on view state hidden input field.BooleangetCacheResourceModificationTimestamp()If true, cache the modification time of the resource and use the cached time to tell if the resource needs to be refreshed.DurationgetClientStateTimeout()Maximum time, in seconds, that client state will be considered valid by the default StateManager/ResponseStateManager implementations.DataSizegetClientStateWriteBufferSize()The size, in bytes, of the buffer that is used to write client state.StringgetCompressableMimeTypes()Specify mime types that should be gzip compressed.BooleangetCompressJavaScript()If true, then the JavaScript rendered by h:commandLink will be compressed to reduce the amount of whitespace transmitted in the response.BooleangetCompressViewState()When true, the view is compressed after it is serialized and before base64 encoded.DurationgetDefaultResourceMaxAge()This affects the value of the Expires response header that will be sent for a resource.BooleangetDisableClientStateEncryption()Since Mojarra 2.2, the client state is by default always encrypted.BooleangetDisableIdUniquenessCheck()If true, then component ID uniqueness won't be checked if ProjectStage is Production to enhance performance.StringgetDisableUnicodeEscaping()By default any characters above a certain range will be escaped as either an HTML entity or a decimal reference.BooleangetDisableVersionTracking()Javadoc not found.BooleangetDisallowDoctypeDecl()When this context param is set to true, this would set a feature on the SAX parser to disallow DOCTYPE declarations.BooleangetDisplayConfiguration()If true then all web configuration information (context initialization parameters and environment entries) will be written to the log.StringgetDuplicateJARPattern()Javadoc not found.BooleangetEnableAgressiveSessionDirtying()If true, makes it so every session attribute is touched in for every request through the lifecycle.BooleangetEnableClientStateDebugging()When true, the client state will as test be unserialized before writing and any serialization exceptions will be logged aInteger with a debug path to the cause of the serialization error.BooleangetEnableCoreTagLibValidator()When true, enable validation of standard Core TagLibs, at the expense of a slightly slower start time.BooleangetEnableDistributable()If true, signal JSF that the application is deployed to a clustered environment, so that session dirtying will be explicitly performed, hereby forcing session replication.BooleangetEnabledJsStyleHiding()If true, inlined JavaScript rendered by the HTML ResponseWriter implementation will be rendered so that the script is hidden from older browser implementations which does not recognize<script/>elements.BooleangetEnabledLoadBundle11Compatibility()Javadoc not found.BooleangetEnableFaceletsResourceResolverCompositeComponents()See issue 3684 for details.BooleangetEnableGroovyScripting()Javadoc not found.BooleangetEnableHtmlTagLibValidator()When true, enable validation of standard Html TagLibs, at the expense of a slightly slower start time.BooleangetEnableHttpMethodRestrictionPhaseListener()add the HttpMethodRestrictionPhaseListener if the parameter is enabled.BooleangetEnableJSStyleHiding()Javadoc not found.BooleangetEnableLazyBeanValidation()When true, managed beans will be validated when first created.BooleangetEnableMissingResourceLibraryDetection()If enabled, the runtime will check for the existence of a resource library before checking for the resource itself.BooleangetEnableRestoreView11Compatibility()Javadoc not found.BooleangetEnableScriptsInAttributeValues()If false, attribute values with javascript: or script: will not be rendered within attribute values to prevent potential XSS attacks.BooleangetEnableThreading()When enabled, the runtime initialization and default ResourceHandler implementation will use threads to perform their functions.BooleangetEnableTransitionTimeNoOpFlash()If true, the act of calling getExternalContext().getFlash() on the FacesContext at startup or shutdown time will cause a no-op implementation of the Flash to be returned.BooleangetEnableViewStateIdRendering()If true, the view state hidden field will be rendered with both the id and name attributes having the value of "javax.faces.ViewState".Class<? extends ExpressionFactory>getExpressionFactory()This parameter specifies a class that implements the ExpressionFactory.StringgetFaceletCache()Javadoc not found.Class<?>getFaceletFactory()The value of this option is a fully qualfified class that extends the com.sun.faces.facelets.FaceletFactory abstract class.StringgetFaceletsProcessingFileExtensionProcessAs()Javadoc not found.BooleangetForceAlwaysWriteFlashCookie()If true, then the flash cookie will always be written, regardless of whether or not the flash has data.BooleangetForceLoadConfiguration()There is a chance for an NPE in com.sun.faces.application.WebappLifecycleListener with some configurations.BooleangetGenerateUniqueServerStateIds()If true, generate random server view state ids.Class<? extends com.sun.faces.spi.InjectionProvider>getInjectionProvider()This parameter specifies a class that implements the InjectionProvider.StringgetManagedBeanFactoryDecorator()Javadoc not found.BooleangetNamespaceParameters()If true, then view state hidden field is namespaced according to NamingContainer rules.IntegergetNumberOfConcurrentFlashUsers()Number of concurrent flash users.IntegergetNumberOfFlashesBetweenFlashReapings()Number flashes between flash repaings.IntegergetNumberOfLogicalViews()Defines the maximum number of serialized views stored in the session.IntegergetNumberOfViewsInSession()Definies the maximum number of serialized logical views per view.BooleangetPreferXhtml()For the case where a browser supports XHTML and HTML without a quality.BooleangetRegisterConverterPropertyEditors()If true, allow EL Coercion to use JSF Custom converters.DurationgetResourceUpdateCheckPeriod()When javax.faces.PROJECT_STATE is Production, UnitTest, or SystemTest resource paths will be cached to reduce the overhead of resource path compuation.DataSizegetResponseBufferSize()This parameter specifies the size, in bytes, of the buffer that is used to write all generated JSP content excluding state.BooleangetSendPoweredByHeader()The servlet specification defines an optional header that can be sent by a container to communicate the version of the JSP/Servlet the response was generated by.Class<? extends com.sun.faces.spi.SerializationProvider>getSerializationProvider()This parameter specifies a class that implements the SerializationProvider SPI.BooleangetSerializeServerState()If enabled the component state (not the tree) will be serialized before being stored in the session.BooleangetValidateXml()When true, enable validation of faces-config.xml files, at the expense of a slightly slower start time.BooleangetVerifyObjects()When true, JSF makes during startup sure all that registered managed beans components, validators, etc can be instantiated by the runtime, at the expense of a slightly slower start time.BooleangetWriteStateAtFormEnd()Per the renderkit doc specification, the state information for the view will be written out prior to closing the form tag.inthashCode()voidsetAllowedHttpMethods(String allowedHttpMethods)A white space separated list of case sensitive HTTP method names that are allowed to be processed by this servlet.voidsetAllowTextChildren(Boolean allowTextChildren)If true, allow children of h:inputText and h:outputText to be rendered.voidsetAnnotationScanPackages(String annotationScanPackages)The value of this context init parameter is a whitespace separated list of values that control which class packages are scanned for javax.faces annotations.voidsetAutoCompleteOffOnViewState(Boolean autoCompleteOffOnViewState)If false, don't use autocomplete="off" on view state hidden input field.voidsetCacheResourceModificationTimestamp(Boolean cacheResourceModificationTimestamp)If true, cache the modification time of the resource and use the cached time to tell if the resource needs to be refreshed.voidsetClientStateTimeout(Duration clientStateTimeout)Maximum time, in seconds, that client state will be considered valid by the default StateManager/ResponseStateManager implementations.voidsetClientStateWriteBufferSize(DataSize clientStateWriteBufferSize)The size, in bytes, of the buffer that is used to write client state.voidsetCompressableMimeTypes(String compressableMimeTypes)Specify mime types that should be gzip compressed.voidsetCompressJavaScript(Boolean compressJavaScript)If true, then the JavaScript rendered by h:commandLink will be compressed to reduce the amount of whitespace transmitted in the response.voidsetCompressViewState(Boolean compressViewState)When true, the view is compressed after it is serialized and before base64 encoded.voidsetDefaultResourceMaxAge(Duration defaultResourceMaxAge)This affects the value of the Expires response header that will be sent for a resource.voidsetDisableClientStateEncryption(Boolean disableClientStateEncryption)Since Mojarra 2.2, the client state is by default always encrypted.voidsetDisableIdUniquenessCheck(Boolean disableIdUniquenessCheck)If true, then component ID uniqueness won't be checked if ProjectStage is Production to enhance performance.voidsetDisableUnicodeEscaping(String disableUnicodeEscaping)By default any characters above a certain range will be escaped as either an HTML entity or a decimal reference.voidsetDisableVersionTracking(Boolean disableVersionTracking)Javadoc not found.voidsetDisallowDoctypeDecl(Boolean disallowDoctypeDecl)When this context param is set to true, this would set a feature on the SAX parser to disallow DOCTYPE declarations.voidsetDisplayConfiguration(Boolean displayConfiguration)If true then all web configuration information (context initialization parameters and environment entries) will be written to the log.voidsetDuplicateJARPattern(String duplicateJARPattern)Javadoc not found.voidsetEnableAgressiveSessionDirtying(Boolean enableAgressiveSessionDirtying)If true, makes it so every session attribute is touched in for every request through the lifecycle.voidsetEnableClientStateDebugging(Boolean enableClientStateDebugging)When true, the client state will as test be unserialized before writing and any serialization exceptions will be logged aInteger with a debug path to the cause of the serialization error.voidsetEnableCoreTagLibValidator(Boolean enableCoreTagLibValidator)When true, enable validation of standard Core TagLibs, at the expense of a slightly slower start time.voidsetEnableDistributable(Boolean enableDistributable)If true, signal JSF that the application is deployed to a clustered environment, so that session dirtying will be explicitly performed, hereby forcing session replication.voidsetEnabledJsStyleHiding(Boolean enabledJsStyleHiding)If true, inlined JavaScript rendered by the HTML ResponseWriter implementation will be rendered so that the script is hidden from older browser implementations which does not recognize<script/>elements.voidsetEnabledLoadBundle11Compatibility(Boolean enabledLoadBundle11Compatibility)Javadoc not found.voidsetEnableFaceletsResourceResolverCompositeComponents(Boolean enableFaceletsResourceResolverCompositeComponents)See issue 3684 for details.voidsetEnableGroovyScripting(Boolean enableGroovyScripting)Javadoc not found.voidsetEnableHtmlTagLibValidator(Boolean enableHtmlTagLibValidator)When true, enable validation of standard Html TagLibs, at the expense of a slightly slower start time.voidsetEnableHttpMethodRestrictionPhaseListener(Boolean enableHttpMethodRestrictionPhaseListener)add the HttpMethodRestrictionPhaseListener if the parameter is enabled.voidsetEnableJSStyleHiding(Boolean enableJSStyleHiding)Javadoc not found.voidsetEnableLazyBeanValidation(Boolean enableLazyBeanValidation)When true, managed beans will be validated when first created.voidsetEnableMissingResourceLibraryDetection(Boolean enableMissingResourceLibraryDetection)If enabled, the runtime will check for the existence of a resource library before checking for the resource itself.voidsetEnableRestoreView11Compatibility(Boolean enableRestoreView11Compatibility)Javadoc not found.voidsetEnableScriptsInAttributeValues(Boolean enableScriptsInAttributeValues)If false, attribute values with javascript: or script: will not be rendered within attribute values to prevent potential XSS attacks.voidsetEnableThreading(Boolean enableThreading)When enabled, the runtime initialization and default ResourceHandler implementation will use threads to perform their functions.voidsetEnableTransitionTimeNoOpFlash(Boolean enableTransitionTimeNoOpFlash)If true, the act of calling getExternalContext().getFlash() on the FacesContext at startup or shutdown time will cause a no-op implementation of the Flash to be returned.voidsetEnableViewStateIdRendering(Boolean enableViewStateIdRendering)If true, the view state hidden field will be rendered with both the id and name attributes having the value of "javax.faces.ViewState".voidsetExpressionFactory(Class<? extends ExpressionFactory> expressionFactory)This parameter specifies a class that implements the ExpressionFactory.voidsetFaceletCache(String faceletCache)Javadoc not found.voidsetFaceletFactory(Class<?> faceletFactory)The value of this option is a fully qualfified class that extends the com.sun.faces.facelets.FaceletFactory abstract class.voidsetFaceletsProcessingFileExtensionProcessAs(String faceletsProcessingFileExtensionProcessAs)Javadoc not found.voidsetForceAlwaysWriteFlashCookie(Boolean forceAlwaysWriteFlashCookie)If true, then the flash cookie will always be written, regardless of whether or not the flash has data.voidsetForceLoadConfiguration(Boolean forceLoadConfiguration)There is a chance for an NPE in com.sun.faces.application.WebappLifecycleListener with some configurations.voidsetGenerateUniqueServerStateIds(Boolean generateUniqueServerStateIds)If true, generate random server view state ids.voidsetInjectionProvider(Class<? extends com.sun.faces.spi.InjectionProvider> injectionProvider)This parameter specifies a class that implements the InjectionProvider.voidsetManagedBeanFactoryDecorator(String managedBeanFactoryDecorator)Javadoc not found.voidsetNamespaceParameters(Boolean namespaceParameters)If true, then view state hidden field is namespaced according to NamingContainer rules.voidsetNumberOfConcurrentFlashUsers(Integer numberOfConcurrentFlashUsers)Number of concurrent flash users.voidsetNumberOfFlashesBetweenFlashReapings(Integer numberOfFlashesBetweenFlashReapings)Number flashes between flash repaings.voidsetNumberOfLogicalViews(Integer numberOfLogicalViews)Defines the maximum number of serialized views stored in the session.voidsetNumberOfViewsInSession(Integer numberOfViewsInSession)Definies the maximum number of serialized logical views per view.voidsetPreferXhtml(Boolean preferXhtml)For the case where a browser supports XHTML and HTML without a quality.voidsetRegisterConverterPropertyEditors(Boolean registerConverterPropertyEditors)If true, allow EL Coercion to use JSF Custom converters.voidsetResourceUpdateCheckPeriod(Duration resourceUpdateCheckPeriod)When javax.faces.PROJECT_STATE is Production, UnitTest, or SystemTest resource paths will be cached to reduce the overhead of resource path compuation.voidsetResponseBufferSize(DataSize responseBufferSize)This parameter specifies the size, in bytes, of the buffer that is used to write all generated JSP content excluding state.voidsetSendPoweredByHeader(Boolean sendPoweredByHeader)The servlet specification defines an optional header that can be sent by a container to communicate the version of the JSP/Servlet the response was generated by.voidsetSerializationProvider(Class<? extends com.sun.faces.spi.SerializationProvider> serializationProvider)This parameter specifies a class that implements the SerializationProvider SPI.voidsetSerializeServerState(Boolean serializeServerState)If enabled the component state (not the tree) will be serialized before being stored in the session.voidsetValidateXml(Boolean validateXml)When true, enable validation of faces-config.xml files, at the expense of a slightly slower start time.voidsetVerifyObjects(Boolean verifyObjects)When true, JSF makes during startup sure all that registered managed beans components, validators, etc can be instantiated by the runtime, at the expense of a slightly slower start time.voidsetWriteStateAtFormEnd(Boolean writeStateAtFormEnd)Per the renderkit doc specification, the state information for the view will be written out prior to closing the form tag.StringtoString()
 
- 
- 
- 
Method Detail- 
getClientStateTimeoutpublic Duration getClientStateTimeout() Maximum time, in seconds, that client state will be considered valid by the default StateManager/ResponseStateManager implementations. If the time between requests exceeds the configured time, a javax.faces.application.ViewExpiredException. will be thrown. It is important to note that if this feature is enabled, and client requests are recieved with view state produced from a previous version, the ViewExpiredException will be thrown immediately.
 - 
getClientStateWriteBufferSizepublic DataSize getClientStateWriteBufferSize() The size, in bytes, of the buffer that is used to write client state. It should be noted, that the buffer used is split - half is for raw bytes, the other half is for the Base64 encoded characters of said bytes. So, for example, if the default, 8192, is used, then 4096 of that is used for the bytes, and the other 4096 is used for the Base64 encoded characters.
 - 
getCompressViewStatepublic Boolean getCompressViewState() When true, the view is compressed after it is serialized and before base64 encoded. Works with client state saving only. As of 1.2_09, this option also impacts server side state saving when com.sun.faces.serializeServerState is set to true (this has a large impact of the size of the state in the session when using this option, at the expense of more CPU of course).
 - 
getDisableClientStateEncryptionpublic Boolean getDisableClientStateEncryption() Since Mojarra 2.2, the client state is by default always encrypted. When true, the client state encryption is disabled. See also com.sun.faces.ClientStateSavingPassword - recommendations for actual password?
 - 
getEnableClientStateDebuggingpublic Boolean getEnableClientStateDebugging() When true, the client state will as test be unserialized before writing and any serialization exceptions will be logged aInteger with a debug path to the cause of the serialization error.
 - 
getGenerateUniqueServerStateIdspublic Boolean getGenerateUniqueServerStateIds() If true, generate random server view state ids. If false, create server view state ids sequentially. This resembles closely the JSF 1.x behavior, but this is more sensitive to CSRF.
 - 
getNumberOfLogicalViewspublic Integer getNumberOfLogicalViews() Defines the maximum number of serialized views stored in the session. Works with server state saving only (note the implementation unintentionally has swapped the meaning, as we cannot change this without breaking what people have become used to we have updated this here). See com.sun.faces.numberOfViewsInSession vs com.sun.faces.numberOfLogicalViews for detail.
 - 
getNumberOfViewsInSessionpublic Integer getNumberOfViewsInSession() Definies the maximum number of serialized logical views per view. Works with server state saving only (note the implementation unintentionally has swapped the meaning, as we cannot change this without breaking what people have become used to we have updated this here) See com.sun.faces.numberOfViewsInSession vs com.sun.faces.numberOfLogicalViews for detail.
 - 
getSerializeServerStatepublic Boolean getSerializeServerState() If enabled the component state (not the tree) will be serialized before being stored in the session. This may be desirable for applications that may have issues with view state being sensitive to model changes after state saving which are reflected back in view state. This has since JSF 2.2 been replaced by javax.faces.SERIALIZE_SERVER_STATE.
 - 
getWriteStateAtFormEndpublic Boolean getWriteStateAtFormEnd() Per the renderkit doc specification, the state information for the view will be written out prior to closing the form tag. However, it may be desirable to have the state information written out after the opening form tag. If this is the case, specifiy this parameter in the web.xml with a value of false.
 - 
getAllowTextChildrenpublic Boolean getAllowTextChildren() If true, allow children of h:inputText and h:outputText to be rendered. In 1.2, they would always be rendered before the value of tag. As of 2.0, children of UIInput and UIOutput components will not be rendered by the default renderer implementations. Set this option to true if this behavior is required, but note that doing so may cause issues when using Ajax. See issue 1154 for details.
 - 
getAutoCompleteOffOnViewStatepublic Boolean getAutoCompleteOffOnViewState() If false, don't use autocomplete="off" on view state hidden input field. This attribute is by default always rendered in order to fix a Firefox related bug, but it is invalid on a hidden input field as per w3 HTML validator. So, when false, then beware of the Firefox bug which may trigger "unexpected" ViewExpiredException. See issue 1129 for details.
 - 
getCompressJavaScriptpublic Boolean getCompressJavaScript() If true, then the JavaScript rendered by h:commandLink will be compressed to reduce the amount of whitespace transmitted in the response. If false then the JavaScript will be rendered to the client in a well formatted manner.
 - 
getDisableUnicodeEscapingpublic String getDisableUnicodeEscaping() By default any characters above a certain range will be escaped as either an HTML entity or a decimal reference. This behavior is not always desirable. To allow more flexibility how content is rendered to a client, this option was introduced. Valid configuration values are: false, true, and auto with false being the default. When the option value is false, Mojarra will continue to escaped no matter the response encoding type. If the configuration value is true, Then no escaping will occur assuming that the response encoding can properly handle all characters. If the configuration option is auto then the response encoding will be checked. If the encoding is of the UTF family of encodings no unicode or html entity encoding will occur, however, if the response stream encoding is ISO-8859-1 then the ISO characters above a certain range will be encoded as HTML entities and any characters above that range will be written as decimal references.
 - 
getDisableIdUniquenessCheckpublic Boolean getDisableIdUniquenessCheck() If true, then component ID uniqueness won't be checked if ProjectStage is Production to enhance performance. See issue 2414 for details.
 - 
getEnabledJsStyleHidingpublic Boolean getEnabledJsStyleHiding() If true, inlined JavaScript rendered by the HTML ResponseWriter implementation will be rendered so that the script is hidden from older browser implementations which does not recognize<script/>elements.
 - 
getEnableScriptsInAttributeValuespublic Boolean getEnableScriptsInAttributeValues() If false, attribute values with javascript: or script: will not be rendered within attribute values to prevent potential XSS attacks.
 - 
getEnableViewStateIdRenderingpublic Boolean getEnableViewStateIdRendering() If true, the view state hidden field will be rendered with both the id and name attributes having the value of "javax.faces.ViewState". This is what the spec requires, however, if there are multiple forms within a view and the response content-type is XHTML, the result will be XHTML that will fail validation due to multiple ID attributes with the same value: javax.faces.ViewState. Setting this parameter to false will result in the ID attribute not being rendered. Keep in mind however, that doing this may break integration with AJAX frameworks that get the state field via ID. See issue 433 for details.
 - 
getPreferXhtmlpublic Boolean getPreferXhtml() For the case where a browser supports XHTML and HTML without a quality. When enabled and this case occurs, then XHTML will be set as the content type. This setting is not recommended and should be only used to fix broken applications designed with XHTML output in mind instead of HTML(5) output.
 - 
getResponseBufferSizepublic DataSize getResponseBufferSize() This parameter specifies the size, in bytes, of the buffer that is used to write all generated JSP content excluding state. Note that this is ignored when Facelets is used. For Facelets, use javax.faces.FACELETS_BUFFER_SIZE instead.
 - 
getCacheResourceModificationTimestamppublic Boolean getCacheResourceModificationTimestamp() If true, cache the modification time of the resource and use the cached time to tell if the resource needs to be refreshed.
 - 
getCompressableMimeTypespublic String getCompressableMimeTypes() Specify mime types that should be gzip compressed. Mime types can be specified by their exact name (i.e. text/css) or a wildcard can be used after the slash (i.e. text/*). The resource will not be compressed on each request, instead when building the cache, the resource will be compressed to a temporary directory and those bytes will be served instead.
 - 
getDefaultResourceMaxAgepublic Duration getDefaultResourceMaxAge() This affects the value of the Expires response header that will be sent for a resource. The logic is basically Date.getTime() + valueOf(defaultResourceManxAge). Increase this value to increase the amount of time that a Resource is valid. The value is in milliseconds (so the default value of 604800000 is 7 days).
 - 
getEnableFaceletsResourceResolverCompositeComponentspublic Boolean getEnableFaceletsResourceResolverCompositeComponents() See issue 3684 for details.
 - 
getEnableMissingResourceLibraryDetectionpublic Boolean getEnableMissingResourceLibraryDetection() If enabled, the runtime will check for the existence of a resource library before checking for the resource itself. If not found, an appropriate error message will be included in the log and in the view if ProjectStage is Development.
 - 
getResourceUpdateCheckPeriodpublic Duration getResourceUpdateCheckPeriod() When javax.faces.PROJECT_STATE is Production, UnitTest, or SystemTest resource paths will be cached to reduce the overhead of resource path compuation. By default, updates (i.e. new files, new directories, new versions, etc.) will be checked for every 5 minutes. If a change is detected, the cache will be cleared and rebuilt. If the value of this option is -1, the cache will never be cleared and new resources will not be picked up. The value is in minutes.
 - 
getEnableAgressiveSessionDirtyingpublic Boolean getEnableAgressiveSessionDirtying() If true, makes it so every session attribute is touched in for every request through the lifecycle. This makes it much harder to make mistakes that cause session replication to fail.
 - 
getEnableDistributablepublic Boolean getEnableDistributable() If true, signal JSF that the application is deployed to a clustered environment, so that session dirtying will be explicitly performed, hereby forcing session replication. This is automatically true when <distributable /> entry is present in web.xml.
 - 
getAnnotationScanPackagespublic String getAnnotationScanPackages() The value of this context init parameter is a whitespace separated list of values that control which class packages are scanned for javax.faces annotations. To restrict which jars/packages are scanned, use the following entry format: jar:'jar name':'comma separated list of packages' So an example would be: jar:a.jar:com.acme.package1,com.acme.package2.
 - 
getDisplayConfigurationpublic Boolean getDisplayConfiguration() If true then all web configuration information (context initialization parameters and environment entries) will be written to the log. This is useful during development to confirm your application is configured as expected.
 - 
getEnableCoreTagLibValidatorpublic Boolean getEnableCoreTagLibValidator() When true, enable validation of standard Core TagLibs, at the expense of a slightly slower start time.
 - 
getEnableHtmlTagLibValidatorpublic Boolean getEnableHtmlTagLibValidator() When true, enable validation of standard Html TagLibs, at the expense of a slightly slower start time.
 - 
getEnableLazyBeanValidationpublic Boolean getEnableLazyBeanValidation() When true, managed beans will be validated when first created. If false, managed beans will be validated when the application is started, at the expense of a slightly slower start time.
 - 
getEnableThreadingpublic Boolean getEnableThreading() When enabled, the runtime initialization and default ResourceHandler implementation will use threads to perform their functions. Set this value to false if threads aren't desired (as in the case of running within the Google Application Engine). Note that when this option is disabled, the ResourceHandler will not pick up new versions of resources when ProjectStage is development. See issue 2385 for details.
 - 
getForceLoadConfigurationpublic Boolean getForceLoadConfiguration() There is a chance for an NPE in com.sun.faces.application.WebappLifecycleListener with some configurations. Take for example, installing JSF in a container such that JSF will be available to all web applications. The NPE will occur for an application that doesn't have the FacesServlet defined within its web.xml. The workaround for this issue is, within the global web.xml for the container (JBoss and Tomcat both have one) add either a FacesServlet definition (no mapping) or add the context init parameter, com.sun.faces.forceLoadConfiguration, with a value of true. See issue 670 for details.
 - 
getValidateXmlpublic Boolean getValidateXml() When true, enable validation of faces-config.xml files, at the expense of a slightly slower start time.
 - 
getVerifyObjectspublic Boolean getVerifyObjects() When true, JSF makes during startup sure all that registered managed beans components, validators, etc can be instantiated by the runtime, at the expense of a slightly slower start time.
 - 
getEnableTransitionTimeNoOpFlashpublic Boolean getEnableTransitionTimeNoOpFlash() If true, the act of calling getExternalContext().getFlash() on the FacesContext at startup or shutdown time will cause a no-op implementation of the Flash to be returned. This should prevent startup/shutdown exceptions caused by invalid/stale flash cookies. See "bugdb 17024459" for details.
 - 
getExpressionFactorypublic Class<? extends ExpressionFactory> getExpressionFactory() This parameter specifies a class that implements the ExpressionFactory.
 - 
getForceAlwaysWriteFlashCookiepublic Boolean getForceAlwaysWriteFlashCookie() If true, then the flash cookie will always be written, regardless of whether or not the flash has data. This should prevent problems on multiple successive redirects. See issue 3735 for details.
 - 
getInjectionProviderpublic Class<? extends com.sun.faces.spi.InjectionProvider> getInjectionProvider() This parameter specifies a class that implements the InjectionProvider.
 - 
getNamespaceParameterspublic Boolean getNamespaceParameters() If true, then view state hidden field is namespaced according to NamingContainer rules. See issue 3031 for details.
 - 
getRegisterConverterPropertyEditorspublic Boolean getRegisterConverterPropertyEditors() If true, allow EL Coercion to use JSF Custom converters.
 - 
getSendPoweredByHeaderpublic Boolean getSendPoweredByHeader() The servlet specification defines an optional header that can be sent by a container to communicate the version of the JSP/Servlet the response was generated by. If this is enabled, then X-Powered-By=JSF/2.2 header is included in all responses.
 - 
getSerializationProviderpublic Class<? extends com.sun.faces.spi.SerializationProvider> getSerializationProvider() This parameter specifies a class that implements the SerializationProvider SPI. This implementation represents a hook the JSF implementation will use in order to allow the use of alternate Serialization implementations.
 - 
getFaceletFactorypublic Class<?> getFaceletFactory() The value of this option is a fully qualfified class that extends the com.sun.faces.facelets.FaceletFactory abstract class. This option allows developers to customize the behavior or completely replace the default com.sun.faces.facelets.FaceletFactory implementation. Some rules about what is expected of custom implementations.If the custom implementation has a public single argument constructor where the argument type is com.sun.faces.facelets.FaceletFactory, the default FaceletFactory implementation will be passed to the constructor. If the single argument constructor is not present, the custom implementation will be constructed by invoking a public no-argument constructor.
 - 
getDisallowDoctypeDeclpublic Boolean getDisallowDoctypeDecl() When this context param is set to true, this would set a feature on the SAX parser to disallow DOCTYPE declarations. When set to false, this would set a feature on the SAX parser to allow DOCTYPE declarations. When this context param is not specified, whether or not DOCTYPE declarations are allowed would just depend on the SAXParserFactory implementation in use, as is the case today.
 - 
getManagedBeanFactoryDecoratorpublic String getManagedBeanFactoryDecorator() Javadoc not found.
 - 
getNumberOfConcurrentFlashUserspublic Integer getNumberOfConcurrentFlashUsers() Number of concurrent flash users.
 - 
getNumberOfFlashesBetweenFlashReapingspublic Integer getNumberOfFlashesBetweenFlashReapings() Number flashes between flash repaings.
 - 
getDuplicateJARPatternpublic String getDuplicateJARPattern() Javadoc not found.
 - 
getFaceletCachepublic String getFaceletCache() Javadoc not found.
 - 
getFaceletsProcessingFileExtensionProcessAspublic String getFaceletsProcessingFileExtensionProcessAs() Javadoc not found.
 - 
getDisableVersionTrackingpublic Boolean getDisableVersionTracking() Javadoc not found.
 - 
getEnableJSStyleHidingpublic Boolean getEnableJSStyleHiding() Javadoc not found.
 - 
getEnabledLoadBundle11Compatibilitypublic Boolean getEnabledLoadBundle11Compatibility() Javadoc not found.
 - 
getEnableRestoreView11Compatibilitypublic Boolean getEnableRestoreView11Compatibility() Javadoc not found.
 - 
getEnableGroovyScriptingpublic Boolean getEnableGroovyScripting() Javadoc not found.
 - 
getEnableHttpMethodRestrictionPhaseListenerpublic Boolean getEnableHttpMethodRestrictionPhaseListener() add the HttpMethodRestrictionPhaseListener if the parameter is enabled.
 - 
getAllowedHttpMethodspublic String getAllowedHttpMethods() A white space separated list of case sensitive HTTP method names that are allowed to be processed by this servlet. * means allow all.
 - 
setClientStateTimeoutpublic void setClientStateTimeout(Duration clientStateTimeout) Maximum time, in seconds, that client state will be considered valid by the default StateManager/ResponseStateManager implementations. If the time between requests exceeds the configured time, a javax.faces.application.ViewExpiredException. will be thrown. It is important to note that if this feature is enabled, and client requests are recieved with view state produced from a previous version, the ViewExpiredException will be thrown immediately.
 - 
setClientStateWriteBufferSizepublic void setClientStateWriteBufferSize(DataSize clientStateWriteBufferSize) The size, in bytes, of the buffer that is used to write client state. It should be noted, that the buffer used is split - half is for raw bytes, the other half is for the Base64 encoded characters of said bytes. So, for example, if the default, 8192, is used, then 4096 of that is used for the bytes, and the other 4096 is used for the Base64 encoded characters.
 - 
setCompressViewStatepublic void setCompressViewState(Boolean compressViewState) When true, the view is compressed after it is serialized and before base64 encoded. Works with client state saving only. As of 1.2_09, this option also impacts server side state saving when com.sun.faces.serializeServerState is set to true (this has a large impact of the size of the state in the session when using this option, at the expense of more CPU of course).
 - 
setDisableClientStateEncryptionpublic void setDisableClientStateEncryption(Boolean disableClientStateEncryption) Since Mojarra 2.2, the client state is by default always encrypted. When true, the client state encryption is disabled. See also com.sun.faces.ClientStateSavingPassword - recommendations for actual password?
 - 
setEnableClientStateDebuggingpublic void setEnableClientStateDebugging(Boolean enableClientStateDebugging) When true, the client state will as test be unserialized before writing and any serialization exceptions will be logged aInteger with a debug path to the cause of the serialization error.
 - 
setGenerateUniqueServerStateIdspublic void setGenerateUniqueServerStateIds(Boolean generateUniqueServerStateIds) If true, generate random server view state ids. If false, create server view state ids sequentially. This resembles closely the JSF 1.x behavior, but this is more sensitive to CSRF.
 - 
setNumberOfLogicalViewspublic void setNumberOfLogicalViews(Integer numberOfLogicalViews) Defines the maximum number of serialized views stored in the session. Works with server state saving only (note the implementation unintentionally has swapped the meaning, as we cannot change this without breaking what people have become used to we have updated this here). See com.sun.faces.numberOfViewsInSession vs com.sun.faces.numberOfLogicalViews for detail.
 - 
setNumberOfViewsInSessionpublic void setNumberOfViewsInSession(Integer numberOfViewsInSession) Definies the maximum number of serialized logical views per view. Works with server state saving only (note the implementation unintentionally has swapped the meaning, as we cannot change this without breaking what people have become used to we have updated this here) See com.sun.faces.numberOfViewsInSession vs com.sun.faces.numberOfLogicalViews for detail.
 - 
setSerializeServerStatepublic void setSerializeServerState(Boolean serializeServerState) If enabled the component state (not the tree) will be serialized before being stored in the session. This may be desirable for applications that may have issues with view state being sensitive to model changes after state saving which are reflected back in view state. This has since JSF 2.2 been replaced by javax.faces.SERIALIZE_SERVER_STATE.
 - 
setWriteStateAtFormEndpublic void setWriteStateAtFormEnd(Boolean writeStateAtFormEnd) Per the renderkit doc specification, the state information for the view will be written out prior to closing the form tag. However, it may be desirable to have the state information written out after the opening form tag. If this is the case, specifiy this parameter in the web.xml with a value of false.
 - 
setAllowTextChildrenpublic void setAllowTextChildren(Boolean allowTextChildren) If true, allow children of h:inputText and h:outputText to be rendered. In 1.2, they would always be rendered before the value of tag. As of 2.0, children of UIInput and UIOutput components will not be rendered by the default renderer implementations. Set this option to true if this behavior is required, but note that doing so may cause issues when using Ajax. See issue 1154 for details.
 - 
setAutoCompleteOffOnViewStatepublic void setAutoCompleteOffOnViewState(Boolean autoCompleteOffOnViewState) If false, don't use autocomplete="off" on view state hidden input field. This attribute is by default always rendered in order to fix a Firefox related bug, but it is invalid on a hidden input field as per w3 HTML validator. So, when false, then beware of the Firefox bug which may trigger "unexpected" ViewExpiredException. See issue 1129 for details.
 - 
setCompressJavaScriptpublic void setCompressJavaScript(Boolean compressJavaScript) If true, then the JavaScript rendered by h:commandLink will be compressed to reduce the amount of whitespace transmitted in the response. If false then the JavaScript will be rendered to the client in a well formatted manner.
 - 
setDisableUnicodeEscapingpublic void setDisableUnicodeEscaping(String disableUnicodeEscaping) By default any characters above a certain range will be escaped as either an HTML entity or a decimal reference. This behavior is not always desirable. To allow more flexibility how content is rendered to a client, this option was introduced. Valid configuration values are: false, true, and auto with false being the default. When the option value is false, Mojarra will continue to escaped no matter the response encoding type. If the configuration value is true, Then no escaping will occur assuming that the response encoding can properly handle all characters. If the configuration option is auto then the response encoding will be checked. If the encoding is of the UTF family of encodings no unicode or html entity encoding will occur, however, if the response stream encoding is ISO-8859-1 then the ISO characters above a certain range will be encoded as HTML entities and any characters above that range will be written as decimal references.
 - 
setDisableIdUniquenessCheckpublic void setDisableIdUniquenessCheck(Boolean disableIdUniquenessCheck) If true, then component ID uniqueness won't be checked if ProjectStage is Production to enhance performance. See issue 2414 for details.
 - 
setEnabledJsStyleHidingpublic void setEnabledJsStyleHiding(Boolean enabledJsStyleHiding) If true, inlined JavaScript rendered by the HTML ResponseWriter implementation will be rendered so that the script is hidden from older browser implementations which does not recognize<script/>elements.
 - 
setEnableScriptsInAttributeValuespublic void setEnableScriptsInAttributeValues(Boolean enableScriptsInAttributeValues) If false, attribute values with javascript: or script: will not be rendered within attribute values to prevent potential XSS attacks.
 - 
setEnableViewStateIdRenderingpublic void setEnableViewStateIdRendering(Boolean enableViewStateIdRendering) If true, the view state hidden field will be rendered with both the id and name attributes having the value of "javax.faces.ViewState". This is what the spec requires, however, if there are multiple forms within a view and the response content-type is XHTML, the result will be XHTML that will fail validation due to multiple ID attributes with the same value: javax.faces.ViewState. Setting this parameter to false will result in the ID attribute not being rendered. Keep in mind however, that doing this may break integration with AJAX frameworks that get the state field via ID. See issue 433 for details.
 - 
setPreferXhtmlpublic void setPreferXhtml(Boolean preferXhtml) For the case where a browser supports XHTML and HTML without a quality. When enabled and this case occurs, then XHTML will be set as the content type. This setting is not recommended and should be only used to fix broken applications designed with XHTML output in mind instead of HTML(5) output.
 - 
setResponseBufferSizepublic void setResponseBufferSize(DataSize responseBufferSize) This parameter specifies the size, in bytes, of the buffer that is used to write all generated JSP content excluding state. Note that this is ignored when Facelets is used. For Facelets, use javax.faces.FACELETS_BUFFER_SIZE instead.
 - 
setCacheResourceModificationTimestamppublic void setCacheResourceModificationTimestamp(Boolean cacheResourceModificationTimestamp) If true, cache the modification time of the resource and use the cached time to tell if the resource needs to be refreshed.
 - 
setCompressableMimeTypespublic void setCompressableMimeTypes(String compressableMimeTypes) Specify mime types that should be gzip compressed. Mime types can be specified by their exact name (i.e. text/css) or a wildcard can be used after the slash (i.e. text/*). The resource will not be compressed on each request, instead when building the cache, the resource will be compressed to a temporary directory and those bytes will be served instead.
 - 
setDefaultResourceMaxAgepublic void setDefaultResourceMaxAge(Duration defaultResourceMaxAge) This affects the value of the Expires response header that will be sent for a resource. The logic is basically Date.getTime() + valueOf(defaultResourceManxAge). Increase this value to increase the amount of time that a Resource is valid. The value is in milliseconds (so the default value of 604800000 is 7 days).
 - 
setEnableFaceletsResourceResolverCompositeComponentspublic void setEnableFaceletsResourceResolverCompositeComponents(Boolean enableFaceletsResourceResolverCompositeComponents) See issue 3684 for details.
 - 
setEnableMissingResourceLibraryDetectionpublic void setEnableMissingResourceLibraryDetection(Boolean enableMissingResourceLibraryDetection) If enabled, the runtime will check for the existence of a resource library before checking for the resource itself. If not found, an appropriate error message will be included in the log and in the view if ProjectStage is Development.
 - 
setResourceUpdateCheckPeriodpublic void setResourceUpdateCheckPeriod(Duration resourceUpdateCheckPeriod) When javax.faces.PROJECT_STATE is Production, UnitTest, or SystemTest resource paths will be cached to reduce the overhead of resource path compuation. By default, updates (i.e. new files, new directories, new versions, etc.) will be checked for every 5 minutes. If a change is detected, the cache will be cleared and rebuilt. If the value of this option is -1, the cache will never be cleared and new resources will not be picked up. The value is in minutes.
 - 
setEnableAgressiveSessionDirtyingpublic void setEnableAgressiveSessionDirtying(Boolean enableAgressiveSessionDirtying) If true, makes it so every session attribute is touched in for every request through the lifecycle. This makes it much harder to make mistakes that cause session replication to fail.
 - 
setEnableDistributablepublic void setEnableDistributable(Boolean enableDistributable) If true, signal JSF that the application is deployed to a clustered environment, so that session dirtying will be explicitly performed, hereby forcing session replication. This is automatically true when <distributable /> entry is present in web.xml.
 - 
setAnnotationScanPackagespublic void setAnnotationScanPackages(String annotationScanPackages) The value of this context init parameter is a whitespace separated list of values that control which class packages are scanned for javax.faces annotations. To restrict which jars/packages are scanned, use the following entry format: jar:'jar name':'comma separated list of packages' So an example would be: jar:a.jar:com.acme.package1,com.acme.package2.
 - 
setDisplayConfigurationpublic void setDisplayConfiguration(Boolean displayConfiguration) If true then all web configuration information (context initialization parameters and environment entries) will be written to the log. This is useful during development to confirm your application is configured as expected.
 - 
setEnableCoreTagLibValidatorpublic void setEnableCoreTagLibValidator(Boolean enableCoreTagLibValidator) When true, enable validation of standard Core TagLibs, at the expense of a slightly slower start time.
 - 
setEnableHtmlTagLibValidatorpublic void setEnableHtmlTagLibValidator(Boolean enableHtmlTagLibValidator) When true, enable validation of standard Html TagLibs, at the expense of a slightly slower start time.
 - 
setEnableLazyBeanValidationpublic void setEnableLazyBeanValidation(Boolean enableLazyBeanValidation) When true, managed beans will be validated when first created. If false, managed beans will be validated when the application is started, at the expense of a slightly slower start time.
 - 
setEnableThreadingpublic void setEnableThreading(Boolean enableThreading) When enabled, the runtime initialization and default ResourceHandler implementation will use threads to perform their functions. Set this value to false if threads aren't desired (as in the case of running within the Google Application Engine). Note that when this option is disabled, the ResourceHandler will not pick up new versions of resources when ProjectStage is development. See issue 2385 for details.
 - 
setForceLoadConfigurationpublic void setForceLoadConfiguration(Boolean forceLoadConfiguration) There is a chance for an NPE in com.sun.faces.application.WebappLifecycleListener with some configurations. Take for example, installing JSF in a container such that JSF will be available to all web applications. The NPE will occur for an application that doesn't have the FacesServlet defined within its web.xml. The workaround for this issue is, within the global web.xml for the container (JBoss and Tomcat both have one) add either a FacesServlet definition (no mapping) or add the context init parameter, com.sun.faces.forceLoadConfiguration, with a value of true. See issue 670 for details.
 - 
setValidateXmlpublic void setValidateXml(Boolean validateXml) When true, enable validation of faces-config.xml files, at the expense of a slightly slower start time.
 - 
setVerifyObjectspublic void setVerifyObjects(Boolean verifyObjects) When true, JSF makes during startup sure all that registered managed beans components, validators, etc can be instantiated by the runtime, at the expense of a slightly slower start time.
 - 
setEnableTransitionTimeNoOpFlashpublic void setEnableTransitionTimeNoOpFlash(Boolean enableTransitionTimeNoOpFlash) If true, the act of calling getExternalContext().getFlash() on the FacesContext at startup or shutdown time will cause a no-op implementation of the Flash to be returned. This should prevent startup/shutdown exceptions caused by invalid/stale flash cookies. See "bugdb 17024459" for details.
 - 
setExpressionFactorypublic void setExpressionFactory(Class<? extends ExpressionFactory> expressionFactory) This parameter specifies a class that implements the ExpressionFactory.
 - 
setForceAlwaysWriteFlashCookiepublic void setForceAlwaysWriteFlashCookie(Boolean forceAlwaysWriteFlashCookie) If true, then the flash cookie will always be written, regardless of whether or not the flash has data. This should prevent problems on multiple successive redirects. See issue 3735 for details.
 - 
setInjectionProviderpublic void setInjectionProvider(Class<? extends com.sun.faces.spi.InjectionProvider> injectionProvider) This parameter specifies a class that implements the InjectionProvider.
 - 
setNamespaceParameterspublic void setNamespaceParameters(Boolean namespaceParameters) If true, then view state hidden field is namespaced according to NamingContainer rules. See issue 3031 for details.
 - 
setRegisterConverterPropertyEditorspublic void setRegisterConverterPropertyEditors(Boolean registerConverterPropertyEditors) If true, allow EL Coercion to use JSF Custom converters.
 - 
setSendPoweredByHeaderpublic void setSendPoweredByHeader(Boolean sendPoweredByHeader) The servlet specification defines an optional header that can be sent by a container to communicate the version of the JSP/Servlet the response was generated by. If this is enabled, then X-Powered-By=JSF/2.2 header is included in all responses.
 - 
setSerializationProviderpublic void setSerializationProvider(Class<? extends com.sun.faces.spi.SerializationProvider> serializationProvider) This parameter specifies a class that implements the SerializationProvider SPI. This implementation represents a hook the JSF implementation will use in order to allow the use of alternate Serialization implementations.
 - 
setFaceletFactorypublic void setFaceletFactory(Class<?> faceletFactory) The value of this option is a fully qualfified class that extends the com.sun.faces.facelets.FaceletFactory abstract class. This option allows developers to customize the behavior or completely replace the default com.sun.faces.facelets.FaceletFactory implementation. Some rules about what is expected of custom implementations.If the custom implementation has a public single argument constructor where the argument type is com.sun.faces.facelets.FaceletFactory, the default FaceletFactory implementation will be passed to the constructor. If the single argument constructor is not present, the custom implementation will be constructed by invoking a public no-argument constructor.
 - 
setDisallowDoctypeDeclpublic void setDisallowDoctypeDecl(Boolean disallowDoctypeDecl) When this context param is set to true, this would set a feature on the SAX parser to disallow DOCTYPE declarations. When set to false, this would set a feature on the SAX parser to allow DOCTYPE declarations. When this context param is not specified, whether or not DOCTYPE declarations are allowed would just depend on the SAXParserFactory implementation in use, as is the case today.
 - 
setManagedBeanFactoryDecoratorpublic void setManagedBeanFactoryDecorator(String managedBeanFactoryDecorator) Javadoc not found.
 - 
setNumberOfConcurrentFlashUserspublic void setNumberOfConcurrentFlashUsers(Integer numberOfConcurrentFlashUsers) Number of concurrent flash users.
 - 
setNumberOfFlashesBetweenFlashReapingspublic void setNumberOfFlashesBetweenFlashReapings(Integer numberOfFlashesBetweenFlashReapings) Number flashes between flash repaings.
 - 
setDuplicateJARPatternpublic void setDuplicateJARPattern(String duplicateJARPattern) Javadoc not found.
 - 
setFaceletCachepublic void setFaceletCache(String faceletCache) Javadoc not found.
 - 
setFaceletsProcessingFileExtensionProcessAspublic void setFaceletsProcessingFileExtensionProcessAs(String faceletsProcessingFileExtensionProcessAs) Javadoc not found.
 - 
setDisableVersionTrackingpublic void setDisableVersionTracking(Boolean disableVersionTracking) Javadoc not found.
 - 
setEnableJSStyleHidingpublic void setEnableJSStyleHiding(Boolean enableJSStyleHiding) Javadoc not found.
 - 
setEnabledLoadBundle11Compatibilitypublic void setEnabledLoadBundle11Compatibility(Boolean enabledLoadBundle11Compatibility) Javadoc not found.
 - 
setEnableRestoreView11Compatibilitypublic void setEnableRestoreView11Compatibility(Boolean enableRestoreView11Compatibility) Javadoc not found.
 - 
setEnableGroovyScriptingpublic void setEnableGroovyScripting(Boolean enableGroovyScripting) Javadoc not found.
 - 
setEnableHttpMethodRestrictionPhaseListenerpublic void setEnableHttpMethodRestrictionPhaseListener(Boolean enableHttpMethodRestrictionPhaseListener) add the HttpMethodRestrictionPhaseListener if the parameter is enabled.
 - 
setAllowedHttpMethodspublic void setAllowedHttpMethods(String allowedHttpMethods) A white space separated list of case sensitive HTTP method names that are allowed to be processed by this servlet. * means allow all.
 - 
canEqualprotected boolean canEqual(Object other) 
 
- 
 
-