myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Seguy (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TOMAHAWK-1331) ExternalContextUtils.getRequestType() doesn't work in a portlet environment
Date Thu, 18 Sep 2008 07:27:44 GMT

    [ https://issues.apache.org/jira/browse/TOMAHAWK-1331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632123#action_12632123
] 

Romain Seguy commented on TOMAHAWK-1331:
----------------------------------------

[^TOMAHAWK-1331.log]: Log generated when the first render is performed on the portlet for
the initial display.

Tech env:
* WebSphere Portal 6.0 (Pluto-based) on Java 1.4
* MyFaces 1.1.6
* Tomahawk 1.1.7
* Portals Bridges 1.0.4

web.xml extract:
	<context-param>
		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
		<param-value>server</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.CONFIG_FILES</param-name>
		<param-value></param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
		<param-value>.jsp</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name>
		<param-value>false</param-value>
	</context-param>
	<context-param>
		<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
		<param-value>true</param-value>
	</context-param>
	<context-param>
		<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
		<param-value>false</param-value>
	</context-param>
	<context-param>
		<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
		<param-value>true</param-value>
	</context-param>
	<context-param>
		<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
		<param-value>true</param-value>
	</context-param>
	<context-param>
		<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
		<param-value>org.apache.myfaces.renderkit.html.util.NonBufferingAddResource</param-value>
	</context-param>
	<context-param>
		<param-name>org.apache.myfaces.DISABLE_TOMAHAWK_FACES_CONTEXT_WRAPPER</param-name>
		<param-value>true</param-value>
	</context-param>
	<filter>
		<description></description>
		<display-name>extensionsFilter</display-name>
		<filter-name>extensionsFilter</filter-name>
		<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
		<init-param>
			<description></description>
			<param-name>uploadMaxFileSize</param-name>
			<param-value>100m</param-value>
		</init-param>
		<init-param>
			<description></description>
			<param-name>uploadThresholdSize</param-name>
			<param-value>100k</param-value>
		</init-param>
	</filter>
	<listener>
		<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
	</listener>
	<servlet>
		<description></description>
		<display-name>Faces Servlet</display-name>
		<servlet-name>Faces Servlet</servlet-name>
		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
	</servlet>

faces-config.xml extract:
	<lifecycle>
		<phase-listener>org.apache.myfaces.webapp.filter.ServeResourcePhaseListener</phase-listener>
    </lifecycle>

    <factory>
		<faces-context-factory>org.apache.myfaces.webapp.filter.TomahawkFacesContextFactory</faces-context-factory>
    </factory> 


> ExternalContextUtils.getRequestType() doesn't work in a portlet environment
> ---------------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1331
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1331
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Portlet_Support
>    Affects Versions: 1.1.7
>         Environment: WebSphere Portal 6.0
> MyFaces 1.1.6
> Tomahawk 1.1.7
> Portals Bridges 1.0.4
>            Reporter: Romain Seguy
>         Attachments: TOMAHAWK-1331.log
>
>
> ExternalContextUtils.getRequestType(Object config, Object request) signature doesn't
correspond to what's used in TomahawkFacesContextFactory.getFacesContext(): The called method
requires a config and a request while it's invoked using a context and a request.
> ==> This always leads to a ClassCastException at TomahawkFacesContextFactory.getFacesContext()#64.
> The invoked method seems to have to be fixed something like this:
> class ExternalContextUtils:
> public static final RequestType getRequestType(Object context, Object request) {
>         if(_PORTLET_CONTEXT_CLASS != null)
>         {
>             if (_PORTLET_CONTEXT_CLASS.isInstance(context))
>             {
>                 // blablabla
> }

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


Mime
View raw message