Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 16807 invoked from network); 14 Feb 2011 21:42:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Feb 2011 21:42:21 -0000 Received: (qmail 22652 invoked by uid 500); 14 Feb 2011 21:42:21 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 22591 invoked by uid 500); 14 Feb 2011 21:42:21 -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 22579 invoked by uid 99); 14 Feb 2011 21:42:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 21:42:20 +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 21:42:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7E0341A5EA9 for ; Mon, 14 Feb 2011 21:41:57 +0000 (UTC) Date: Mon, 14 Feb 2011 21:41:57 +0000 (UTC) From: "Michael Freedman (JIRA)" To: dev@myfaces.apache.org Message-ID: <28143967.15872.1297719717512.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <188535508.3819.1297205697659.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Reopened: (MYFACES-3039) MyFaces broken in Portlet environment: Fails to support extendable FacesContextFactory/FacesContext/ExternalContext MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Freedman reopened MYFACES-3039: --------------------------------------- Can you clarify what the defaultExternalContext is being used for? On portlet requests this seemingly won't be set/used as its the Bridge's ExternalContext that is in use not the core MyFaces one (which does the attribute put that causes this default stuff to be enabled). Basically, I am trying to ensure there isn't a problem in the portlet env in not participating in this mechanism. > MyFaces broken in Portlet environment: Fails to support extendable FacesContextFactory/FacesContext/ExternalContext > -------------------------------------------------------------------------------------------------------------------- > > Key: MYFACES-3039 > URL: https://issues.apache.org/jira/browse/MYFACES-3039 > Project: MyFaces Core > Issue Type: Bug > Components: JSR-314 > Reporter: Michael Freedman > Assignee: Leonardo Uribe > Fix For: 2.0.5-SNAPSHOT > > > JSF 2.0 improved the definition/handling of the instantiation of the FacesContext allowing non-servlet environments to wrap the base/core impl. This was done because most of the FacesContext apis are inherently runtime environment neutral -- allowing the portlet bridge to not have to duplicate/reimplement and maybe get wrong base core function. Unfortunately MyFaces doesn't conform to this change and hence the Portlet Bridge can't run in the MyFaces environment. > Basically the bridge expects to be able to delegate from its FacesContextFactoryImpl.getFacesContext and then wrap the returned FacesContext with its own. This requires the underlying core impl to be runtime (servlet/portlet) neutral during the creation process. The bridge will wrap the FacesContext and supply its own ExternalContext such that any servlet dependent impl in the core FacesContext/ExternalContext will be hidden by overrides. > FYI ... until this is addressed I can't begin any testing of the bridge on MyFaces. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira