From adffaces-user-return-940-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Fri Sep 15 17:19:40 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 81245 invoked from network); 15 Sep 2006 17:19:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2006 17:19:40 -0000 Received: (qmail 51394 invoked by uid 500); 15 Sep 2006 17:19:39 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 51362 invoked by uid 500); 15 Sep 2006 17:19:38 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 51353 invoked by uid 99); 15 Sep 2006 17:19:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 10:19:38 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of awiner@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 10:19:26 -0700 Received: by ug-out-1314.google.com with SMTP id y2so314695uge for ; Fri, 15 Sep 2006 10:18:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=GE7l+1TCRQSrTlsbzkfd/1D/7KTNxtmgnwRgSXLLLXT2CnFTDXFdnBwQpp4cTLTYfsqFD6l00jFQyucF7zBlYGLmZl4aojotrZjZ+OGZRUtl+WBeO67KVViaGeV8XiitlyLBC/c7x84P3DgzhkAFwxm5vWEcRN2eSPK9gGsWnOc= Received: by 10.67.97.7 with SMTP id z7mr5507765ugl; Fri, 15 Sep 2006 10:18:04 -0700 (PDT) Received: by 10.67.99.17 with HTTP; Fri, 15 Sep 2006 10:18:04 -0700 (PDT) Message-ID: <6dac79b90609151018xa0ba434u4839e168fa42a004@mail.gmail.com> Date: Fri, 15 Sep 2006 10:18:04 -0700 From: "Adam Winer" To: adffaces-user@incubator.apache.org Subject: Re: Dialogs loading in popup *and* parent window Cc: "Laurie Harper" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_86578_32635518.1158340684680" References: <71235db40608232032j14aa63feh3bb935faf58228e4@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_86578_32635518.1158340684680 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Laurie, Seeing this one way after the fact. This seems like a pretty bad bug; partialSubmit="true" is a good idea, but definitely shouldn't be necessary... I think something is going very wrong here, and I'll look into it. -- Adam On 8/23/06, Laurie Harper wrote: > > Setting partialSubmit="true" fixes it, thanks! Now the question is, > should that be necessary, or should Trinidad somehow figure it out > automatically? And if that's not possible, what are the circumstances > where it needs to be specified? where it can be omitted? > > Cheers, > > L. > > On 23-Aug-06, at 11:32 PM, Matthias Wessendorf wrote: > > > I am using also > > Shale, Facelets and Trinidad > > > > no issue here > > try to add > > partialSubmit="true" immediate="true" > > > > > > > action="#{dialogBean.createAccount}" > > returnListener="#{dialogBean.returned}" partialSubmit="true" > > immediate="true" useWindow="true" windowWidth="400" > > windowHeight="400"/> > > > > > > On 8/23/06, Laurie Harper wrote: > >> I'm trying to get Trinidad dialogs working in an application and it's > >> almost working, with one caveat: when a dialog opens, a new window > >> pops up as expected, with the correct page displayed, but the calling > >> window *also* refreshes to display the dialog -- in other words, I > >> end up with the dialog displayed in both the popup window and the > >> originating window. > >> > >> I have a somewhat involved configuration, using custom ViewHandler > >> and NavigationHandler implementations, with Shale, Facelets, Trinidad > >> and MyFaces all in the mix, so it's probably some undesired > >> interaction between one or more of these components that's causing > >> the problem. The trouble is, I'm not quite sure where to start > >> looking... > >> > >> Since the correct dialog *is* opening in a new window, I suspect that > >> the undesired refresh of the originating window is due to a mis-step > >> somewhere in the dialog handling on the client side. Here's a simple- > >> as-possible Facelets view to invoke a dialog: > >> > >> dialog.xhtml > >> ------------ > >> > >> > >>

Launch a dialog

> >> edit >> tr:commandLink> > >>
> >>
> >> > >> faces-config.xml > >> ---------------- > >> ... > >> > >> /foo/dialog.xhtml > >> > >> popup:edit > >> /foo/dialog2.xhtml > >> > >> > >> ... > >> > >> The rendered HTML from dialog.xhtml is included below. I can see that > >> the command link calls submitForm() on click, and tracing through > >> that with Venkman shows that it eventually calls form.submit(). What > >> I'm unclear about is how/where the response gets redirected to a > >> popup window, and how it's getting rendered in the originating window > >> *as well as* in the popup window. > >> > >> I'm using a recent Trinidad build from svn trunk. Any suggestions for > >> how to further diagnose this would be *most* welcome... > >> > >> L. > >> > >> > >> > >> >> TR/html4/loose.dtd"> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >>
>> style="position:absolute;left:0;top:0;width:0;height:0;cursor:wait;" > >> onkeydown="return false;" onkeyup="return false;" onmousedown="return > >> false;" onmouseup="return false;" onkeypress="return false;">
> >> > >> > >> > >>
>> onkeypress="return _submitOnEnter(event,'_id2');" action="/faces/foo/ > >> dialog.xhtml"> > >>

Launch a dialog

> >> edit > >> >> name="org.apache.myfaces.trinidad.faces.FORM" value="_id2"> > >> > >> >> name="org.apache.myfaces.trinidad.faces.STATE" value="!-47b9b9a5"> > >> > >> > >> > >> > >> > >>
> >> > >> > >> > >> > >> > >> -- > >> Laurie Harper > >> Open Source advocate, Java geek: http://www.holoweb.net/laurie > >> Founder, Zotech Software: http://www.zotechsoftware.com/ > >> > >> > >> > >> > > > > > > -- > > Matthias Wessendorf > > > > further stuff: > > blog: http://jroller.com/page/mwessendorf > > mail: mwessendorf-at-gmail-dot-com > > -- > Laurie Harper > Open Source advocate, Java geek: http://www.holoweb.net/laurie > Founder, Zotech Software: http://www.zotechsoftware.com/ > > > > ------=_Part_86578_32635518.1158340684680--