[jboss-jira] [JBoss JIRA] Resolved: (JBAS-8100) Duplicate Mojarra "auto-servlet" feature

Stan Silvert (JIRA) jira-events at lists.jboss.org
Wed Jun 30 17:05:46 EDT 2010


     [ https://jira.jboss.org/browse/JBAS-8100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stan Silvert resolved JBAS-8100.
--------------------------------

    Fix Version/s: 6.0.0.M4
       Resolution: Done


If no FacesServlet, then FacesServlet and mappings will be automatically added if any of the following are true:
* WEB-INF/faces-config.xml is found
* A specific JSF implementation is specified with the org.jboss.jbossfaces.JSF_CONFIG_NAME context param
* An alternate faces-config file is specified with the javax.faces.CONFIG_FILES context param
* A META-INF/faces-config.xml file is found inside a jar in WEB-INF/lib
* A META-INF/*.faces-config.xml file is found inside a jar in WEB-INF/lib

All of these go beyond the current JSF spec.  The last four go beyond Mojarra's FacesInitializer.

The one thing that the FacesInitializer does that we do not do is to auto-add the FacesServlet when JSF annotations are detected.  At this point I'm planning to leave that unimplemented.  The main reason is that there are performance concerns about scanning every class in every WAR.  Perhaps the new annotation scanner takes care of this concern?  The other reason is that this part does appear difficult to implement in the JSF deployer.  

I'm assuming that this implementation is sufficient because "waking up" JSF is just a matter of specifying the FacesServlet or fulfilling one of the five conditions above.  But arguments to the contrary are welcome.

> Duplicate Mojarra "auto-servlet" feature
> ----------------------------------------
>
>                 Key: JBAS-8100
>                 URL: https://jira.jboss.org/browse/JBAS-8100
>             Project: JBoss Application Server
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: JSF
>    Affects Versions: 6.0.0.M4
>            Reporter: Stan Silvert
>            Assignee: Stan Silvert
>             Fix For: 6.0.0.M4
>
>
> With the JSF Deployer we can no longer call the ServletContextInitializer that does Mojarra's "auto-servlet" feature.  This feature automatically creates a FacesServlet and mappings when no FacesServlet is present and JSF artifacts are detected.  The SCI that comes with Mojarra was really not correct for JBoss anyway because it would add the Mojarra ServletContextListener and we need to add the JBossJSFServletContextListener.
> We can duplicate this functionality using the JSF Deployer instead of an SCI.  It can also be extended to work with older JSF implementations if desired.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list