You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2011/05/02 16:07:03 UTC

[jira] [Resolved] (MYFACES-3093) Check FacesServlet description for support servlet 3.0 spec

     [ https://issues.apache.org/jira/browse/MYFACES-3093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved MYFACES-3093.
-------------------------------------

    Resolution: Fixed
      Assignee: Leonardo Uribe

I checked and corrected the required stuff to comply with FacesServlet description on the javadoc. To do that, I had to create a new module called shaded-impl and take myfaces core impl 2.0.5 jar and uncompress the sources, to allow use myfaces impl SPI API in implee6 module. In the future this hack will be removed.

> 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
>            Assignee: Leonardo Uribe
>             Fix For: 2.1.0
>
>
> 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