Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 88118 invoked from network); 22 Feb 2008 17:19:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2008 17:19:32 -0000 Received: (qmail 45792 invoked by uid 500); 22 Feb 2008 17:19:23 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 45743 invoked by uid 500); 22 Feb 2008 17:19:23 -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 45732 invoked by uid 99); 22 Feb 2008 17:19:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 09:19:23 -0800 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 andrew.rw.robinson@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 17:18:50 +0000 Received: by ug-out-1314.google.com with SMTP id 30so1634534ugs.15 for ; Fri, 22 Feb 2008 09:18:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=eQM2vKqz+g++1qyc2pL7av4cWsvL3hzXLgTt/iL7ZNI=; b=HnhHy6uIk5jY2585qU6rxnQE4fwEY/hoJcoeJmNb5QEP/bUL4lBXkqZRnGG1kJvsWhmZ7nx6+5EcuiRtMJyWNEJ+kLndi5SXmwjUMYk5Xz/kHPh/Si5AnE1GuzzmCTgnMCiAkM+KIq4PSWL2svgJw2Gxs185dkHQWD+YWYHZCfc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YZhtkocfayZ/sn2mAAQBwxXSDejr0Io5erIBMiInhifzaIuY7ITLGK7faqzkWwQzYgnM4OvIKSmvSHXge7E8clHKZrjPpjJ0reVyTJ9fc6pd+/Cn2cNBtdx1W2WKRjNmCgI7CLgaFTdRYZq6ndIMy/5Uw7uVmkg1DU2OBBO/yC4= Received: by 10.142.212.19 with SMTP id k19mr176770wfg.154.1203700736643; Fri, 22 Feb 2008 09:18:56 -0800 (PST) Received: by 10.142.127.9 with HTTP; Fri, 22 Feb 2008 09:18:56 -0800 (PST) Message-ID: Date: Fri, 22 Feb 2008 10:18:56 -0700 From: "Andrew Robinson" To: "MyFaces Discussion" Subject: Re: [Trinidad] js issue while handling PPR inside a tr:panelPopup In-Reply-To: <47BEFD77.5080200@tecnotp.it> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47BD4C92.5000708@tecnotp.it> <47BE8829.1070004@tecnotp.it> <47BEFD77.5080200@tecnotp.it> X-Virus-Checked: Checked by ClamAV on apache.org Good. Do you want to file a bug and upload a patch? A timeout of 0 or 1 ms should be sufficient. -Andrew On Fri, Feb 22, 2008 at 9:51 AM, Renzo Tomaselli wrote: > > Andrew, yes - using setTimeout solves the problem. Just put: > > if (_agent && _agent.isIE) > window.setTimeout("document.getElementById('" + refocusId + > "').focus()", 1000); > else > activeNode.focus(); > > Btw I noticed a similar problem today in a different context. I had a popup > list (non a tr:panelPopup) to be shown as a suggestion list upon clicking a > link. All done through PPR and I needed to call focus() to preselect the > first item as well as catching onBlur to hide the list. > Once again, no problems on FF, while on IE this call returned ok, but the > very first time no popup was shown. Once more - commenting out the focus > call solved the problem. But even doing it a bit later through setTimeout > was ok. > > -- Renzo > > > > Andrew Robinson wrote: > I am wondering if this ought to be called in a window setTimeout. Any > way you can modify the code locally and attempt to see if that helps? > > On Fri, Feb 22, 2008 at 1:30 AM, Renzo Tomaselli > wrote: > > > Yes, I followed the PPR response handling on FF/Firebug - but there all is > ok. > Then I investigated on IE 6/7 by means of placing alerts everywhere. There > is no return from calling focus(), although no errors are reported - even on > IE 7 with IE developer toolbar activated. > > -- Renzo > > > > Andrew Robinson wrote: > Hmmm, you say this is during the PPR application? > > I think there is a bug in IE that causes exceptions to be thrown if > setFocus is called from the PPR "thread" > > -Andrew > > On Thu, Feb 21, 2008 at 3:04 AM, Renzo Tomaselli > wrote: > > > Hi, I have a panelPopup containing a number of links with > partialSubmit="true". The panel itself is enclosed into a > panelGroupLayout bound to a bean. > This binding allows to define the enclosing panel as a PPR target > through addPartialTarget(), no matter which links triggers it. > So the overall structure is roughly like this: > > > > partialSubmit="true" > ... > > all of this works fine on FF. However it does not on IE 6/7. The very > first time the panel is created, but any following click on links does > not refresh panel contents. > After some js debugging - I noticed that in Page.js, method > _handlePprResponseFragment() - there is a focus action on the link > itself (which is recorded as being active): > > if (refocusId) { > activeNode = doc.getElementById(refocusId); > if (activeNode && activeNode.focus) { > activeNode.focus(); // !!!!! > > on IE there is no return from focus(), so that the rest of the panel > fragments are not rendered. No errors, though. > If I comment out the focus() call, everything works as expected. > > -- Renzo > > > > > > > > > >