Apache MyFaces Core 2.3-next

(Almost) Implementation of the JavaServerâ„¢ Faces (JSF) 2.3 specification.

2.3-next equals the JSF 2.3 API but is a completely new version and codebase. It also comes with a Quarkus extension.
We removed shared modules, dependencies, removed unused code, unified code, cleanup everything.
It will be the base of the upcoming JSF 4.0.

What are the benefits compared to 2.3?

  • 1MB less size (including dependencies)
  • No dependencies
  • Up to 15% faster
  • Much more maintainable codebase
  • Better default parameters, optimized for developer-usability and performance

What are the disadvantages compared to 2.3?

  • We completely removed the ManagedBeans implementaiton, but we delegate the @ManagedBean and scope annotations to CDI
  • ManagedBeans configured via XML are completely ignored
  • The implementation of the old FacesEL (javax.faces.el.*) also has been completely removed.

Requirements

  • Java 1.8
  • Servlet 3.0 (4.0 will enable JSF to serve resources via HTTP/2 push)
  • EL 2.2
  • CDI 1.2
  • JSTL 1.2 (optional)
  • BV 1.1 (optional)

Source

Apache GitBox / GitHub

Downloads

MirrorsChecksumSignature
binary (tar.gz)myfaces-core-assembly-2.3-next-M5-bin.tar.gzmyfaces-core-assembly-2.3-next-M5-bin.tar.gz.sha512myfaces-core-assembly-2.3-next-M5-bin.tar.gz.asc
binary (zip)myfaces-core-assembly-2.3-next-M5-bin.zipmyfaces-core-assembly-2.3-next-M5-bin.zip.sha512myfaces-core-assembly-2.3-next-M5-bin.zip.asc
source (tar.gz)myfaces-core-assembly-2.3-next-M5-src.tar.gzmyfaces-core-assembly-2.3-next-M5-src.tar.gz.sha512myfaces-core-assembly-2.3-next-M5-src.tar.gz.asc
source (zip)myfaces-core-assembly-2.3-next-M5-src.zipmyfaces-core-assembly-2.3-next-M5-src.zip.sha512myfaces-core-assembly-2.3-next-M5-src.zip.asc

Dependency

<dependency>
  <groupId>org.apache.myfaces.core</groupId>
  <artifactId>myfaces-api</artifactId>
  <version>2.3-next-M5</version>
</dependency>
<dependency>
  <groupId>org.apache.myfaces.core</groupId>
  <artifactId>myfaces-impl</artifactId>
  <version>2.3-next-M5</version>
</dependency>

Release Verification

Configuration

MyFaces core behavior can be customized, adding some web config params into your WEB-INF/web.xml or META-INF/web-fragment.xml file for your custom project in this way:

<context-param>
	<param-name>org.apache.myfaces.SOME_USEFUL_PARAM</param-name>
	<param-value>someValue</param-value>
</context-param>

:warning: The table below uses o.a.m as shortcut for org.apache.myfaces

Common

NameSinceDefault valueExpected valuesDescription
javax.faces.PROJECT_STAGE2.0ProductionDevelopment, Production, SystemTest, UnitTestno description
javax.faces.FACELETS_BUFFER_SIZE2.01024Define the default buffer size value passed to ExternalContext.setResponseBufferResponse() and in " + "a servlet environment to HttpServletResponse.setBufferSize()
javax.faces.FACELETS_DECORATORS2.0Set of class names, separated by ‘;’, implementing TagDecorator interface, used to transform a view definition in a facelet abstract syntax tree, that is used later to generate a component tree
javax.faces.FACELETS_LIBRARIES2.0Set of .taglib.xml files, separated by ‘;’ that should be loaded by facelet engine.
javax.faces.FACELETS_REFRESH_PERIOD2.0-1Define the period used to refresh the facelet abstract syntax tree from the view definition file
javax.faces.FACELETS_SKIP_COMMENTS2.0Skip comments found on a facelet file
javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES2.1.0falsetrue, falseIndicate if the facesContext attribute values under the keys javax
javax.faces.VIEWROOT_PHASE_LISTENER_QUEUES_EXCEPTIONS2.3falsetrue, falseno description
javax.faces.CLIENT_WINDOW_MODE2.2.0nonenone, url, url-redirect, clientDefines the ClientWindow mode to use
javax.faces.CONFIG_FILES1.1Comma separated list of URIs of (additional) faces config files
javax.faces.LIFECYCLE_ID1.1Identify the Lifecycle instance to be used
javax.faces.DISABLE_FACESSERVLET_TO_XHTML2.3Disable automatic FacesServlet xhtml mapping
javax.faces.FACELETS_RESOURCE_RESOLVER2.0Class implementing ResourceResolver interface used to locate facelet resources
javax.faces.WEBSOCKET_ENDPOINT_PORT2.3Indicates the port used for websocket connections
o.a.m.VIEW_POOL_MAX_POOL_SIZE5Defines the number of views to be hold per each view metadata definition
o.a.m.VIEW_POOL_MAX_DYNAMIC_PARTIAL_LIMIT2Defines the limit of the views that cannot be reused partially
o.a.m.VIEW_POOL_ENTRY_MODEsoftweak,softDefines the type of memory reference that is used to hold the view into memory
o.a.m.VIEW_POOL_DEFERRED_NAVIGATIONfalsetrue, falseDefines if the view pool uses deferred navigation to recycle views when navigation is performed
o.a.m.USE_LAMBDA_METAFACTORY2.3-nexttruetrue,falseDefines if Lambda expressions (via LambdaMetafactory) are used for getter/setter instead of Reflection
o.a.m.CONFIG_REFRESH_PERIOD1.12Set the time in seconds that check for updates of web
o.a.m.VALIDATE_XML2.0true, false, on, off, yes, noIf set to true, tag library XML files and faces config XML files using schema
o.a.m.FACES_INIT_PLUGINS2.0comma delimited list of plugin classes which can be hooked into myfaces
o.a.m.INITIALIZE_SKIP_JAR_FACES_CONFIG_SCAN2.2.10falsetrue, falseIf 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)
o.a.m.INITIALIZE_ALWAYS_STANDALONE2.0.3falseIf this param is set to true, the check for faces servlet mapping is not done
o.a.m.WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWARE2.0.9, 2.1.3truetrue, falseWrap 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
o.a.m.RESOURCE_CACHE_LAST_MODIFIED2.3-nexttruetrue, falseDefines if the last-modified should be cached of the resources when the ProjectStage is Production
o.a.m.LOG_WEB_CONTEXT_PARAMSautotrue, auto, falseIndicate if log all web config params should be done before initialize the webapp
o.a.m.AUTOMATIC_EXTENSIONLESS_MAPPING2.3falsetrue, falseThis parameter enables automatic extensionless mapping for all JSF views
o.a.m.FACES_INITIALIZER2.0.1Class name of a custom FacesInitializer implementation.
o.a.m.spi.InjectionProvider2.2Define the class implementing InjectionProvider interface to handle dependendy injection, PostConstruct and PreDestroy callbacks
o.a.m.WEBSOCKET_MAX_CONNECTIONS2.3no description
o.a.m.RENDER_CLIENTBEHAVIOR_SCRIPTS_AS_STRING2.3-nextfalseDefines if the clientbehavior scripts are passed as string or function to the jsf
o.a.m.ALWAYS_FORCE_SESSION_CREATION2.3-nextfalsetrue,falseDefines if a session should be created (if one does not exist) before response rendering
o.a.m.RESOURCE_BUNDLE_CONTROL2.3-nextDefines the {@link java
o.a.m.DEFAULT_WINDOW_MODE2.2urlno description
o.a.m.ERROR_TEMPLATE_RESOURCE1.2.4META-INF/rsc/myfaces-dev-error.xmlIndicate the template name used to render the default error page used by MyFaces specific error handler implementation
o.a.m.DEBUG_TEMPLATE_RESOURCE1.2.4META-INF/rsc/myfaces-dev-debug.xmlIndicate the template name used to render the default debug page (see ui:debug tag)
o.a.m.ERROR_HANDLING1.2.4false, on Development Project stage: truetrue,falseIndicate if myfaces is responsible to handle errors
o.a.m.SERVICE_PROVIDER_FINDER2.0.3Class name of a custom ServiceProviderFinder implementation.
o.a.m.DEBUG_PHASE_LISTENER2.0.8Enable/disable DebugPhaseListener feature, with provide useful information about ValueHolder variables (submittedValue, localValue, value)
o.a.m.VALIDATE2.0falsetrue, falseValidate if the managed beans and navigations rules are correct
o.a.m.annotation.USE_CDI_FOR_ANNOTATION_SCANNING2.2.9falseDefines if CDI should be used for annotation scanning to improve the startup performance
o.a.m.STRICT_JSF_2_ORIGIN_HEADER_APP_PATH2.3falsetrue,falseThis parameter specifies whether or not the Origin header app path should be checked
o.a.m.MARK_INITIAL_STATE_WHEN_APPLY_BUILD_VIEW2.1falsetrue, falseno description
o.a.m.DELEGATE_FACES_SERVLET1.2.7Define an alternate class name that will be used to initialize MyFaces, instead the default javax
o.a.m.annotation.SCAN_PACKAGES2.0Servlet context init parameter which defines which packages to scan for beans, separated by commas
o.a.m.WEBSOCKET_MAX_IDLE_TIMEOUT300000no description
o.a.m.TEMPORAL_RESOURCEHANDLER_CACHE_ENABLED2.1.11falsetrue, falseIf this param is set to true (default false), a temporal directory is created and all files handled by this ResourceLoader are cached there, avoiding the problem described on MYFACES-3586
o.a.m.FLASH_SCOPE_DISABLED2.0.5falseDefines whether flash scope is disabled, preventing add the Flash cookie to the response
o.a.m.LAZY_LOAD_CONFIG_OBJECTS2.0trueIndicate 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

Validation

NameSinceDefault valueExpected valuesDescription
javax.faces.VALIDATE_EMPTY_FIELDS2.0autoauto, true, falseForce validation on empty fields (By default is auto, which means it is only enabled when Bean Validation binaries are available on the current classpath)
javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL2.0falsetrue, falseSubmitted values are decoded as null values instead empty strings
o.a.m.CLEAR_INPUT_WHEN_SUBMITTED_VALUE_IS_NULL_OR_EMPTY2.3.0truetrue, falseWhen CLEAR_INPUT_WHEN_SUBMITTED_VALUE_IS_NULL_OR_EMPTY is enabled, input fields will be cleared when null or empty values are submitted
javax.faces.ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE2.3falsetrue, falseIf set to true, validation is always performed when required is true
javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE2.0falsetrue, falseSet the default timezone as system timezone when a converter extending from DateTimeConverter is created
o.a.m.ENUM_CONVERTER_ALLOW_STRING_PASSTROUGH2.0.1falsetrue,falseIf value is a String instance and this param is true, pass it directly without try any change
javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR2.0truetrue, falseIf this init parameter is present, no Bean Validators should be added to an UIInput by default
javax.faces.validator.ENABLE_VALIDATE_WHOLE_BEAN2.3falsetrue, falseEnable f:validateWholeBean use
o.a.m.validator.BEAN_BEFORE_JSF_VALIDATION2.2.10falsetrue, falseEnforce f:validateBean to be called first before any JSF validator

EL

NameSinceDefault valueExpected valuesDescription
o.a.m.SUPPORT_JSP2.0.13,2.1.7truetrue,falseIf set false, myfaces won't support JSP. JSP are deprecated in " + "JSF 2.X. Default value is true.
o.a.m.SUPPORT_EL_3_IMPORT_HANDLER2.2.9falsetrue,falseThis parameter specifies whether or not the ImportHandler will be supported
o.a.m.EL_RESOLVER_COMPARATOR1.2.10, 2.0.2The Class of an Comparator<ELResolver> implementation.
o.a.m.EL_RESOLVER_PREDICATE2.1.0The 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’
o.a.m.EXPRESSION_FACTORY1.2.7This parameter specifies the ExpressionFactory implementation to use
o.a.m.CACHE_EL_EXPRESSIONS2.0.8alwaysRecompilenoCache, strict, allowCset, always, alwaysRecompileIndicates if expressions generated by facelets should be cached or not
o.a.m.STRICT_JSF_2_CC_EL_RESOLVER2.0.10falsetrue, falseChange 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

Render

NameSinceDefault valueExpected valuesDescription
o.a.m.STRICT_XHTML_LINKS1.1.6truetrue, false, on, off, yes, noUse “&amp;” entity instead a plain “&” character within HTML
o.a.m.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON1.2.3falsetrue, false, on, off, yes, noThis param renders the clear javascript on button necessary only for compatibility with hidden fields feature of myfaces
o.a.m.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG2.0.1falsetrue, false, on, off, yes, noWrap content inside script with xml comment to prevent old browsers to display it
o.a.m.EARLY_FLUSH_ENABLED2.2.0falsetrue, falseEnable 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.
o.a.m.RENDER_FORM_VIEW_STATE_AT_BEGIN2.2.4falsetrue,falseThis param makes h:form component to render the view state and other hidden fields at the beginning of the form
o.a.m.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS2.0.1falsetrue,falseIf this param is true and the project stage is development mode, the source javascript files will be loaded separately instead have all in just one file, to preserve line numbers and make javascript debugging of the default jsf javascript file more simple
o.a.m.JSF_JS_MODE2.0.10,2.1.4normalnormal, minimal-modern, minimalDefine the mode used for jsf
o.a.m.DEFAULT_RESPONSE_WRITER_CONTENT_TYPE_MODE2.0.11,2.1.5text/htmltext/html, application/xhtml+xmlDefine the default content type that the default ResponseWriter generates, when no match can be derived from HTTP Accept Header

ViewHandler

NameSinceDefault valueExpected valuesDescription
javax.faces.DEFAULT_SUFFIX1.1.xhtml .view.xml .jspIndicate the default suffixes, separated by spaces to derive the default file URI used by JSF to create views and render pages
javax.faces.FACELETS_SUFFIX2.0.xhtmlThe default extension used to handle facelets pages
javax.faces.FACELETS_VIEW_MAPPINGS2.0Set of extensions handled by facelets, separated by ‘;’
o.a.m.VIEWID_CACHE_SIZE2.0.2500Controls the size of the viewId related caches: " + "VIEWID_EXISTS_CACHE_ENABLED, VIEWID_PROTECTED_CACHE_ENABLED, VIEWID_DERIVE_CACHE_ENABLED
o.a.m.VIEWID_EXISTS_CACHE_ENABLED2.0.2truetrue, falseEnable or disable the cache used to ‘remember’ if a view exists or not and reduce the impact " + "of sucesive calls to ExternalContext.getResource().
o.a.m.VIEWID_PROTECTED_CACHE_ENABLED2.3-nexttruetrue, falseEnable or disable the cache used to ‘remember’ if a view is protected or not.
o.a.m.VIEWID_DERIVE_CACHE_ENABLED2.3-nexttruetrue, falseEnable or disable the cache used to ‘remember’ the derived viewId from the rawViewId.
o.a.m.JSP_SUFFIX2.3.jspno description
o.a.m.VIEW_UNIQUE_IDS_CACHE_ENABLED2.0.13, 2.1.7truetrue, falseEnable or disable a cache used to ‘remember’ the generated facelets unique ids " + "and reduce the impact over memory usage.
o.a.m.COMPONENT_UNIQUE_IDS_CACHE_SIZE2.0.13, 2.1.7200Set the size of the cache used to store strings generated using SectionUniqueIdCounter for component ids
o.a.m.STRICT_JSF_2_VIEW_NOT_FOUND2.1.13falsetrue,falseIf 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
o.a.m.STRICT_JSF_2_FACELETS_COMPATIBILITY2.2.0falsetrue,falseThis 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

Resources

NameSinceDefault valueExpected valuesDescription
javax.faces.RESOURCE_EXCLUDES2.0.class .jsp .jspx .properties .xhtml .groovySpace separated file extensions that will not be served by the default ResourceHandler implementation
o.a.m.STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME2.1.6, 2.0.12falsetrue, falseAllow slash in the library name of a Resource
o.a.m.RESOURCE_BUFFER_SIZE2.1.10, 2.0.162048Define the default buffer size that is used between Resource
o.a.m.RESOURCE_HANDLER_CACHE_SIZE2.0.2500Controls the size of the cache used to check if a resource exists or not
o.a.m.RESOURCE_HANDLER_CACHE_ENABLED2.0.2truetrue,falseEnable or disable the cache used to “remember” if a resource handled by the default ResourceHandler exists or not
o.a.m.RESOURCE_MAX_TIME_EXPIRES2.0604800000Set the max time in miliseconds set on the “Expires” header for a resource rendered by the default ResourceHandler

State

NameSinceDefault valueExpected valuesDescription
javax.faces.STATE_SAVING_METHOD1.1serverserver,clientDefine the state method to be used. There are two different options " + "defined by the specification: ‘client’ and ‘server’ state.
javax.faces.FULL_STATE_SAVING_VIEW_IDS2.0Indicate the viewId(s) separated by commas that should be saved and restored fully, without use Partial State Saving (PSS)
javax.faces.PARTIAL_STATE_SAVING2.0true (false with 1.2 webapps)true,falseEnable or disable partial state saving algorithm
javax.faces.SERIALIZE_SERVER_STATE2.2falsetrue,falseIndicate if the state should be serialized before save it on the session
o.a.m.USE_ENCRYPTION1.1truetrue,falseIndicate if the view state is encrypted or not
o.a.m.SECRET1.1Defines the secret (Base64 encoded) used to initialize the secret key for encryption algorithm
o.a.m.ALGORITHM1.1AESIndicate the encryption algorithm used for encrypt the view state. As of version 2.3-next-M5 the default switched from DES to AES.
o.a.m.SECRET.CACHE1.1If is set to “false”, the secret key used for encryption algorithm is not cached
o.a.m.ALGORITHM.IV1.1Defines the initialization vector (Base64 encoded) used for the encryption algorithm
o.a.m.ALGORITHM.PARAMETERS1.1ECB/PKCS5PaddingDefines the default mode and padding used for the encryption algorithm
o.a.m.SERIAL_FACTORY1.1Defines the factory class name using for serialize/deserialize the view state returned by state manager into a byte array
o.a.m.COMPRESS_STATE_IN_CLIENT1.1falsetrue,falseIndicate if the view state should be compressed before encrypted(optional) and encoded
o.a.m.MAC_ALGORITHMHmacSHA256Indicate the algorithm used to calculate the Message Authentication Code that is added to the view state. As of version 2.3-next-MF the default switched from HmacSHA1 to HmacSHA256.
o.a.m.MAC_SECRETDefine the initialization code that are used to initialize the secret key used on the Message Authentication Code algorithm
o.a.m.MAC_SECRET.CACHEIf is set to “false”, the secret key used for MAC algorithm is not cached
o.a.m.RENDER_VIEWSTATE_ID1.1truetrue, false, on, off, yes, noDefine if the input field that should store the state (javax.faces.ViewState) should render id=“javax.faces.ViewState”.
o.a.m.REFRESH_TRANSIENT_BUILD_ON_PSS2.0autotrue,false,autoIndicate if the facelet associated to the view should be reapplied when the view is refreshed
o.a.m.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE2.0falsetrue, false, on, off, yes, noEnable 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
o.a.m.RANDOM_KEY_IN_CSRF_SESSION_TOKEN_LENGTH2.2.016Set the default length of the random key used for the csrf session token
o.a.m.RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_CLASS2.2.0Sets the random class to initialize the secure random id generator
o.a.m.RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_PROVIDER2.2.0Sets the random provider to initialize the secure random id generator
o.a.m.RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_ALGORITM2.2.0SHA1PRNGSets the random algorithm to initialize the secure random id generator
o.a.m.RANDOM_KEY_IN_WEBSOCKET_SESSION_TOKEN2.2.0secureRandomsecureRandom, randomDefines how to generate the csrf session token. As of version 2.3-next-M5 the default switched from random to secureRandom.
o.a.m.CLIENT_VIEW_STATE_TIMEOUT2.1.9, 2.0.150Define the time in minutes where the view state is valid when client side state saving is used
o.a.m.RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN2.1.9, 2.0.15secureRandomsecureRandom, randomAdds a random key to the generated view state session token. As of version 2.3-next-M5 the default switched from random to secureRandom.
o.a.m.RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_LENGTH2.1.9, 2.0.158Set the default length of the random key added to the view state session token
o.a.m.RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM_CLASS2.1.9, 2.0.15Sets the random class to initialize the secure random id generator
o.a.m.RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM_PROVIDER2.1.9, 2.0.15Sets the random provider to initialize the secure random id generator
o.a.m.RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM_ALGORITHM2.1.9, 2.0.15SHA1PRNGSets the random algorithm to initialize the secure random id generator
o.a.m.RANDOM_KEY_IN_CSRF_SESSION_TOKEN2.2.0secureRandomsecureRandom, randomDefines how to generate the csrf session token. As of version 2.3-next-M5 the default switched from random to secureRandom.
o.a.m.COMPRESS_STATE_IN_SESSION1.1truetrue,falseIndicates that the serialized state will be compressed before it is written to the session
o.a.m.USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION2.0.6falsetrue, falseAllow 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
o.a.m.AUTOCOMPLETE_OFF_VIEW_STATE2.2.8, 2.1.18, 2.0.24truetrue, falseAdd autocomplete=“off” to the view state hidden field
o.a.m.NUMBER_OF_VIEWS_IN_SESSION1.120Defines the amount (default = 20) of the latest views are stored in session
o.a.m.NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION2.0.64Indicates the amount of views (default is not active) that should be stored in session between sequential POST or POST-REDIRECT-GET if org
o.a.m.CHECK_ID_PRODUCTION_MODE2.0.12, 2.1.6autotrue, auto, falseDefine 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)
o.a.m.NUMBER_OF_FLASH_TOKENS_IN_SESSION2.2.6Indicate the max number of flash tokens stored into session
o.a.m.FACES_FLOW_CLIENT_WINDOW_IDS_IN_SESSION2.2.6Indicate the max number of client window ids stored into session by faces flow

Integration / SPI

:warning: usually common users of MyFaces Core does not need to deal with these specific stuff, because the application/web server could already provide the necessary hooks or integration modules “out of the box”

MyFaces core provides some “points of integration” that can be used by application and web servers to override or add some specific code. For example, JBoss AS provides a custom virtual file system (VFS), and MyFaces core needs to scan for faces-config.xml files, so it is necessary to provide some code that uses JBoss VFS to locate faces-config.xml files to be parsed later.

Some features uses Service Provider Interface (SPI) pattern, so take a look at java.util.ServiceLoader description in java 6 api to get the idea how it works.

Below there is a table of the “points of integration” used by application and web servers:

Integration PointClasses InvolvedDescriptionSince
Override SPI handlingorg.apache.myfaces.spi.ServiceProviderFinder
org.apache.myfaces.spi.ServiceProviderFinderFactory
Override SPI handling done by MyFaces Core, usually taking advantage of container specific features to scan files inside jars.2.0.3, 2.1.0
Annotation Scanningorg.apache.myfaces.spi.AnnotationProvider
org.apache.myfaces.spi.AnnotationProviderWrapper
org.apache.myfaces.spi.AnnotationProviderFactory
Override/wrap myfaces annotation scanning algorithm that needs to be processed at startup.2.0.3, 2.1.0
Locate facelet .taglib.xml files through classpath.org.apache.myfaces.spi.FaceletConfigResourceProvider
org.apache.myfaces.spi.FaceletConfigResourceProviderFactory
Locate facelet .taglib.xml files through classpath. These files has definitions that are used by facelets algorithm to parse view files.2.0.3, 2.1.0
Locate faces-config.xml files through classpath.org.apache.myfaces.spi.FacesConfigResourceProvider
org.apache.myfaces.spi.FacesConfigResourceProviderFactory
Locate faces-config xml files through classpath. These files has definitions that are used by initialize jsf environment. By default it locate all files inside META-INF folder, named faces-config.xml or ending with .faces-config.xml2.0.3, 2.1.0
Get an unified configuration after sort and order all config files.org.apache.myfaces.spi.FacesConfigurationMerger
org.apache.myfaces.spi.FacesConfigurationMergerFactory
org.apache.myfaces.config.element.*
Get all org.apache.myfaces.config.element.FacesConfig data and then it combines it into one org.apache.myfaces.config.element.FacesConfigData instance.2.0.3, 2.1.0
Get configuration information from different sources and allow cache them.org.apache.myfaces.spi.FacesConfigurationProvider
org.apache.myfaces.spi.FacesConfigurationProviderFactory
org.apache.myfaces.config.element.*
This interface provide a way to merge and store all JSF config information retrieved from faces-config.xml files, META-INF/service files and annotations that works as base point to initialize MyFaces. The objective is allow server containers to “store” or this information, preventing calculate it over and over each time the web application is started.2.0.3, 2.1.0
Override javax.faces.FactoryFinder default algorithmorg.apache.myfaces.spi.FactoryFinderProvider
org.apache.myfaces.spi.FactoryFinderProviderFactory
Provide an interface to override javax.faces.FactoryFinder class methods. This is useful if containers does not want to use Thread Context Class Loader to load classes, like in OSGi.2.0.5, 2.1.0
Provide additional info from web.xml filesorg.apache.myfaces.spi.WebConfigProvider
org.apache.myfaces.spi.WebConfigProviderFactory org.apache.myfaces.spi.ServletMapping
Provide additional info from web.xml files, like mapping or if an error page is present.2.0.3, 2.1.0
Override initialization and destroy web applicationsorg.apache.myfaces.webapp.FacesInitializer
org.apache.myfaces.webapp.FacesInitializerFactory
Allow customize initialization / destroy operations or provide an alternate MyFaces initializer to a specific container.2.0.1,
Scan for annotated Flows and manage Flow scopeorg.apache.myfaces.spi.FacesFlowProvider
org.apache.myfaces.spi.FacesFlowProviderFactory
In this interface @FlowDefinition annotation is scanned for flows defined programatically and it is also managed the flow scope logic. By default MyFaces provides two implementations, one using CDI and one without CDI (that only manages flow scope)2.2.0
Manage View scopeorg.apache.myfaces.spi.ViewScopeProvider
org.apache.myfaces.spi.ViewScopeProviderFactory
This interface manage the logic to plug the view scope with JSF. It has some methods to handle view scope destroy or session destroy2.2.0
Scan for available contractsorg.apache.myfaces.spi.ResourceLibraryContractsProvider
org.apache.myfaces.spi.ResourceLibraryContractsProviderFactory
Provides an interface to scan for the available resource library contracts in the current environment. By default it scans using external context getResource(...) methods and in the classpath according to JSF spec.2.2.0