Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFBD7D7A4 for ; Mon, 30 Jul 2012 12:26:14 +0000 (UTC) Received: (qmail 37909 invoked by uid 500); 30 Jul 2012 12:26:14 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 37842 invoked by uid 500); 30 Jul 2012 12:26:13 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 37829 invoked by uid 99); 30 Jul 2012 12:26:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2012 12:26:13 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lu4242@gmail.com designates 209.85.160.53 as permitted sender) Received: from [209.85.160.53] (HELO mail-pb0-f53.google.com) (209.85.160.53) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2012 12:26:07 +0000 Received: by pbbrr13 with SMTP id rr13so9333380pbb.12 for ; Mon, 30 Jul 2012 05:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=y4hyTzicwjwFFSY13nKjrWt7YMwQd82m0vcXr7N5uo0=; b=rjSOdl9rTADHt8vIDnSNeZmQUaqWcrvXAx3/NtkREksXorZwZWekR5wrLZvr671OeG Cma2+XbBtd1wkzqV/o5WAp81mb1ij4rIJKZRxJvKqQvMbK0//wQ9RzJ99sH5v6bJYpjg OycZ8X/bClgArrV0dqfAOy+LFXdAGEeZWAE75knKe44YMZG/pxfK48gdYpDTgnem+aoE pvq5SR/1u0sFNnGqVu0zJXi41J0FsldTN5IX471SlBx6YK+zNfIC4L8SSun3VjNyDAox MQGhAwMlLoyCX7re/sKSlkjcCB0cW87mjd3uTxF7/Gk7su/ULZ07CuRaDF/XxQzDhQqP XxhA== MIME-Version: 1.0 Received: by 10.68.227.195 with SMTP id sc3mr34639471pbc.104.1343651145836; Mon, 30 Jul 2012 05:25:45 -0700 (PDT) Received: by 10.66.228.97 with HTTP; Mon, 30 Jul 2012 05:25:45 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Jul 2012 07:25:45 -0500 Message-ID: Subject: Re: Cannot reset buffer after response has been committed && JspViewDeclarationLanguageStrategy From: Leonardo Uribe To: MyFaces Discussion Content-Type: text/plain; charset=ISO-8859-1 Hi TA >> i get following error if i try to open a page, which does not exist: TA >> Cannot reset buffer after response has been committed TA >>>> TA >> As far as i can see, the JspViewDeclarationLanguageStrategy handles the TA >> "null" viewId and if i return "false" in #isHandle, it works without TA >> problems. TA >> Why JspViewDeclarationLanguageStrategy handles also the "null" viewId? There are some compatibility tests that requires this behavior. Anyway, it is always necessary set a viewId for a valid view. 2012/7/25 Thomas Andraschko : TA >> I created an issue after analzing the original problem: TA >> https://issues.apache.org/jira/browse/MYFACES-3587 TA >> TA >> Should i also create an issue because disable SUPPORT_JSP_AND_FACES_EL TA >> requires to set the EXPRESSION_FACTORY? Or is it be design? When JSP is enabled, facelets can take the ExpressionFactory implementation from it, but when it is disabled, it is necessary to indicate which one is used, because there is no algorithm to scan for ExpressionFactory implementations. TA >> Ah, sorry! I got another exception now: TA >> TA >> javax.faces.FacesException: Cannot find a valid PDL for view id null. TA >> TA >> So the third question is, isn't there any viewId == null check? There is no check for null in that part, by compatibility reasons, so even if a check is reasonable we can't include it. The exception is correct. regards, Leonardo Uribe