Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 88999 invoked from network); 13 Sep 2007 16:46:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Sep 2007 16:46:03 -0000 Received: (qmail 43746 invoked by uid 500); 13 Sep 2007 16:45:51 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 43719 invoked by uid 500); 13 Sep 2007 16:45:51 -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 43708 invoked by uid 99); 13 Sep 2007 16:45:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 09:45:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of awiner@gmail.com designates 209.85.198.188 as permitted sender) Received: from [209.85.198.188] (HELO rv-out-0910.google.com) (209.85.198.188) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 16:45:50 +0000 Received: by rv-out-0910.google.com with SMTP id c27so412802rvf for ; Thu, 13 Sep 2007 09:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=jOcR+uX1dOUmRErzKHWoNgX773J9YjkdnXkzpADcev0=; b=GGcrW+NSvO9bMBDD0CYMXa9faMmOmvw0ApDQKh1EObUiffzDUILijAbY8wKE1rV6QPrBMb/DOx8ry6eCV1R49ccbn46OOGjku8O5Ih6DngP5NA7sHp5MFNuguJAxMjqhQP/MpZh2CtLfMKD81k62ULLsuvtyrLxjWHkxUIEgrJ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lnyk2ybxz86bevmgifR1OBZb5UuY12yccuOatdf/QKdGCwlKB4jMSOl60H+ICvTd514agBRfWkwB51Oi8pDNAy6UYw9KnWg/bG0WQ2zv0eGfCjFnNfH26mQ4N0zIQzuw2uVsByTduLmuV/Fbp07jjLs31kLke60xCT+jaLo085o= Received: by 10.141.170.10 with SMTP id x10mr531974rvo.1189701930240; Thu, 13 Sep 2007 09:45:30 -0700 (PDT) Received: by 10.141.172.7 with HTTP; Thu, 13 Sep 2007 09:45:30 -0700 (PDT) Message-ID: <6dac79b90709130945p2f8b010dj6af74b9c42883ecb@mail.gmail.com> Date: Thu, 13 Sep 2007 09:45:30 -0700 From: "Adam Winer" To: "MyFaces Discussion" Subject: Re: [Trinidad] tr:table PPR failing In-Reply-To: <6dac79b90709130918v70815470sd4be9fe448c6b85c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6dac79b90709130918v70815470sd4be9fe448c6b85c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 9/13/07, Adam Winer wrote: > On 9/13/07, Andrew Robinson wrote: > > Timothy, > > > > I stripped the page and the AJAX down to the ID attributes only > > (FYI I used this set of commands with VIM to do this: > > %s/>\r > ) > > Can I get you on permanent retainer for VIM-editing? :) > > > Here are the results: > > > > Page: > > id="acctPage:acctTable" > > id="acctPage:acctTable:j_id_jsp_1566647018_17" > > id="acctPage:acctTable:j_id_jsp_1566647018_19" > > id="acctPage:acctTable:j_id_jsp_1566647018_21" > > id="acctPage:acctTable__xc_ha" > > id="acctPage:acctTable__xc_sa" > > id="acctPage:acctTabledd0" > > id="j_id0" > > > > AJAX response: > > id="_acctForm_Postscript" > > id="acctPage:acctTable" > > id="acctPage:acctTable:0:j_id_jsp_1566647018_33" > > id="acctPage:acctTable:j_id_jsp_1566647018_17" > > id="acctPage:acctTable:j_id_jsp_1566647018_19" > > id="acctPage:acctTable:j_id_jsp_1566647018_21" > > id="acctPage:acctTable__xc_ha" > > id="acctPage:acctTabledd0" > > id="j_id0" > > > > As you can see, the following items in the AJAX were not in the page: > > id="_acctForm_Postscript" > > id="acctPage:acctTable:0:j_id_jsp_1566647018_33" > > > > Looking at your page source, there is no form element. The form is > > required AFAIK. This may be just because you didn't provide the full > > source though. > > I suspect so... the submission wouldn't have gotten far at all > without a form element. The "postscript" in the PPR reply > is in fact part of the form. > > It looks as though the issue is exactly related to trying to get that > expanded row to show up, since the one missing ID is ":0:" > (that is, the first row of the table). Lemme try this locally. Ech, ignore that commentary. Diffing the full set of IDs isn't really relevant here: PPR can, of course, introduce new IDs. It just can't introduce new *top* IDs - each fragment has to point to an existing ID. We've got two fragments in here:
And these do seem to be in the page already. But even if they weren't, it seems that the current JS code would simply drop them and move on. Tim, could you by any chance use FireBug's JS debugger to step through TrPage.prototype._handlePprResponse()? It's not clear where this JS error is coming from. (FWIW, the basic table row-disclosure demo seems to be working fine for me, at least on FF (haven't tested IE)). -- Adam