Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 80576 invoked from network); 31 Jan 2006 13:15:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Jan 2006 13:15:04 -0000 Received: (qmail 22641 invoked by uid 500); 31 Jan 2006 13:15:02 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 22583 invoked by uid 500); 31 Jan 2006 13:15:02 -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 22572 invoked by uid 99); 31 Jan 2006 13:15:01 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2006 05:14:59 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 91A6F126 for ; Tue, 31 Jan 2006 14:14:38 +0100 (CET) Message-ID: <1695960277.1138713278594.JavaMail.jira@ajax.apache.org> Date: Tue, 31 Jan 2006 14:14:38 +0100 (CET) From: "Martin Marinschek (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-152) ResponseWriter.endDocument() abuse breaks ADF Faces MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/MYFACES-152?page=comments#action_12364611 ] Martin Marinschek commented on MYFACES-152: ------------------------------------------- Have you configured the extensionsFilter? regards, Martin > ResponseWriter.endDocument() abuse breaks ADF Faces > --------------------------------------------------- > > Key: MYFACES-152 > URL: http://issues.apache.org/jira/browse/MYFACES-152 > Project: MyFaces > Type: Bug > Components: General > Versions: 1.0.9m9 > Reporter: Adam Winer > Priority: Critical > Fix For: 1.1.2, Nightly > > I've been shown some problems lately with MyFaces 1.0.9 and ADF Faces. > The problems specifically trace to MyFaces's use of > ResponseWriter.endDocument() to output Javascript. Since ADF Faces > runs with its own RenderKit (and therefore its own ResponseWriter), > this Javascript is getting dropped and not written. > I'd recommend (both as JSF EG guy and ADF Faces guy) that this MyFaces > code be moved *out* of ResponseWriter.endDocument(). Specifically: > - ResponseWriter.endDocument() is not guaranteed to be called before > the close of or even the close of , and therefore this > script cannot be safely output at this point. It's quite likely that > changes in JSF 1.2 will essentially guarantee that endDocument() is > not called until the close of all output. > - This is not really the intent of ResponseWriter.endDocument(). In > HTML, it should be a no-op. It's there for more bizarre scenarios > like a ResponseWriter outputting a SOAP envelope around a response. > - It's breaking ADF Faces. :) > A significantly cleaner way to output needed Javascript is to add it > as needed from the Renderers that require it (using a request-scoped > attribute to track if its been added already). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira