Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 103 invoked from network); 19 Aug 2009 21:15:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Aug 2009 21:15:20 -0000 Received: (qmail 41858 invoked by uid 500); 19 Aug 2009 21:15:38 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 41774 invoked by uid 500); 19 Aug 2009 21:15:38 -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 41766 invoked by uid 99); 19 Aug 2009 21:15:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2009 21:15:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2009 21:15:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2375529A0029 for ; Wed, 19 Aug 2009 14:15:15 -0700 (PDT) Message-ID: <60084727.1250716515144.JavaMail.jira@brutus> Date: Wed, 19 Aug 2009 14:15:15 -0700 (PDT) From: "Michael Freedman (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (PORTLETBRIDGE-95) Trinidad GoLink/Faces CommandLink broken in bridge 2.0 if nav to another Faces view 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 Trinidad GoLink/Faces CommandLink broken in bridge 2.0 if nav to another Faces view ----------------------------------------------------------------------------------- Key: PORTLETBRIDGE-95 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-95 Project: MyFaces Portlet Bridge Issue Type: Bug Components: Impl Affects Versions: 2.0.0-alpha, 2.0.0 Reporter: Michael Freedman Assignee: Michael Freedman Trinidad GoLinks and Faces CommandLink's that reference another Faces view ultimately are encoded as actionURLs but submitted via GETs (a hefs). This means when the action is processed a VIEW_STATE param isn't passed to the action -- leaving us in position in which the render that follows this action has a cached view but no (preserved) VIEW_STATE param. Since this render restores the view manually but then calls lifecycle.execute we get triupped up in Mojarra's lifecycle (restoreView handler) that sets responseComplete if the UIViewRoot has already been restored AND its not a postback (no VIEW_STATE param). With responseCompelte set, the bridge skips calling lifecycle.render -- thus the page generates no markup. The fix is to detect that the action is called with no VIEW_STATE param and to preserve a placeholder/dummy one so that the following render works. This should be safe as the VIEW_STATE param is updated at the end of render with the one that results from having saved the view -- thus overwriting the palceholder at a time when we remove the view from the cache. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.