You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Ondrej Svetlik (JIRA)" <de...@myfaces.apache.org> on 2008/06/08 20:09:45 UTC

[jira] Created: (TOMAHAWK-1275) MyFaces extensions filter creates a session

MyFaces extensions filter creates a session
-------------------------------------------

                 Key: TOMAHAWK-1275
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1275
             Project: MyFaces Tomahawk
          Issue Type: Improvement
          Components: ExtensionsFilter
    Affects Versions: 1.1.6
            Reporter: Ondrej Svetlik


The session is always created here:
at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:279):
		ServletContext servletContext = request
			.getSession().getServletContext();

The method is called here:
	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:126)

But in the doFilter() method servlet context is already known so it is not necessary to get it through a session - you may pass it to getInstance to avoid session creation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.