Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 69709 invoked from network); 14 Feb 2011 23:08:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Feb 2011 23:08:19 -0000 Received: (qmail 24641 invoked by uid 500); 14 Feb 2011 23:08:19 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 24593 invoked by uid 500); 14 Feb 2011 23:08:18 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 24586 invoked by uid 99); 14 Feb 2011 23:08:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 23:08:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 23:08:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 738AA1A59FB for ; Mon, 14 Feb 2011 23:07:57 +0000 (UTC) Date: Mon, 14 Feb 2011 23:07:57 +0000 (UTC) From: "Mike Kienenberger (JIRA)" To: dev@myfaces.apache.org Message-ID: <303162820.16069.1297724877469.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <145663047.15863.1297719242898.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (MYFACES-3042) CCE: when running in portlet: Remove Servlet dependencies in FaceletViewDeclarationLanguage.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MYFACES-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994548#comment-12994548 ] Mike Kienenberger commented on MYFACES-3042: -------------------------------------------- Michael, you should have permissions to fix this yourself if you desire. > CCE: when running in portlet: Remove Servlet dependencies in FaceletViewDeclarationLanguage.java > ------------------------------------------------------------------------------------------------ > > Key: MYFACES-3042 > URL: https://issues.apache.org/jira/browse/MYFACES-3042 > Project: MyFaces Core > Issue Type: Bug > Components: Portlet_Support > Affects Versions: 2.0.5-SNAPSHOT > Reporter: Michael Freedman > > In FaceletViewDeclarationLanguage.java: createResponseWriter(), getResponseEncoding(), handleFaceletNotFound(), and sendSourceNotFound() each cast to Servlet object. This causes ClassCastExceptions when run in a portlet environment. Each of these calls/casts can be removed and ExternalContext APIs can be used instead to get/set the needed information from the request or response object. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira