[
https://issues.apache.org/jira/browse/MYFACES-3093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027741#comment-13027741
]
Jakob Korherr commented on MYFACES-3093:
----------------------------------------
I think a better idea than the myfaces-shaded-impl "hack" would be to create a
myfaces-spi module, which contains MyFaces' SPI classes (of course, only the
abstract ones, not the implementation classes) and which will be shaded into
myfaces-impl at build time. In this way myfaces-implee6 could use the
myfaces-spi module and the myfaces-shaded-impl module could be removed.
What do you think of that solution, Leo?
> 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