Check FacesServlet description for support servlet 3.0 spec 
------------------------------------------------------------

                 Key: MYFACES-3093
                 URL: https://issues.apache.org/jira/browse/MYFACES-3093
             Project: MyFaces Core
          Issue Type: Task
          Components: JSR-314
    Affects Versions: 2.1.0-SNAPSHOT
            Reporter: Leonardo Uribe


The description says this:

".. If the application is running in a Servlet 3.0 (and beyond) container, the 
runtime must provide an implementation of the ServletContainerInitializer 
interface that declares the following classes in its 
javax.servlet.annotation.HandlesTypes annotation.

    * ResourceDependencies
    * ResourceDependency
    * javax.faces.bean.ManagedBean
    * FacesComponent
    * UIComponent
    * Converter
    * FacesConverter
    * ListenerFor
    * ListenersFor
    * FacesBehaviorRenderer
    * Renderer
    * FacesValidator
    * Validator

This servlet must automatically be mapped if it is not explicitly mapped in 
web.xml or web-fragment.xml and one or more of the following conditions are 
true.

    *

      A faces-config.xml file is found in WEB-INF
    *

      A faces-config.xml file is found in the META-INF directory of a jar in 
the application's classpath.
    *

      A filename ending in .faces-config.xml is found in the META-INF directory 
of a jar in the application's classpath.
    *

      The javax.faces.CONFIG_FILES context param is declared in web.xml or 
web-fragment.xml.
    *

      The Set of classes passed to the onStartup() method of the 
ServletContainerInitializer implementation is not empty.

If the runtime determines that the servlet must be automatically mapped, it 
must be mapped to the following <url-pattern> entries.

    * /faces
    * *.jsf
    * *.faces
..."

In theory, MyFaces has already that class (MyFacesContainerInitializer on 
implee6), but we need to check if it complies with the spec. Note the part that 
says UIComponent and Renderer classes should be added as HandlesTypes.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to