Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 32048 invoked from network); 11 Feb 2009 16:49:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2009 16:49:40 -0000 Received: (qmail 45923 invoked by uid 500); 11 Feb 2009 16:49:35 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 45894 invoked by uid 500); 11 Feb 2009 16:49:35 -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 45885 invoked by uid 99); 11 Feb 2009 16:49:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 08:49:35 -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 richard.k.yee@gmail.com designates 209.85.220.17 as permitted sender) Received: from [209.85.220.17] (HELO mail-fx0-f17.google.com) (209.85.220.17) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 16:49:27 +0000 Received: by fxm10 with SMTP id 10so612545fxm.12 for ; Wed, 11 Feb 2009 08:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:x-mailer :mime-version:subject:date:references; bh=wg2HgBUW7RXlwWu3OoZhNIog9aeY/P2tlp8SIMt7WeM=; b=XIiBoHYPVBUdew2eQU6/T617gB5ainWnib4/E+gyrgy0oNkxv2ByaGRMMNxeV0YOhQ x7EXQTskL8FVOolxCA2LuE58OCT/weGNAzWKv00jC0wKAuAYsqwSXJIUClNcuWVP8d80 wUJ+//iCimApCv4pZUJhCeXdqIi0wiBuho1/k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:x-mailer:mime-version:subject:date :references; b=InBRqpiNg1YTVuBXack3qqxPNnJZsG1/Bf+SFTs1US8t8EdzPgaWXLJzPyG5TRaQNr 36I+wpQq3QAsfgxvmwHCSbxbPcI8obqBXX9oV8mIEEprcmOw92CPf2heOTgz+67Tl6bn 66Yjv1FAZJQtiw7uNXeOGYNMqNrAOmERv8334= Received: by 10.223.117.1 with SMTP id o1mr1697700faq.96.1234370908568; Wed, 11 Feb 2009 08:48:28 -0800 (PST) Received: from ?10.87.60.34? ([32.155.66.164]) by mx.google.com with ESMTPS id k9sm2628226nfh.62.2009.02.11.08.48.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Feb 2009 08:48:27 -0800 (PST) Message-Id: From: Richard Yee To: MyFaces Discussion In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (5G77) Mime-Version: 1.0 (iPhone Mail 5G77) Subject: Re: [Trinidad] How to get out of Trinidad dialog scope with multiple dialogs Date: Wed, 11 Feb 2009 08:48:16 -0800 References: <494BB46A.6060601@cruzio.com> X-Virus-Checked: Checked by ClamAV on apache.org For each dialog that is created, returnFromDialog needs to be called. I suggest to only create one dialog and then just chang the view in that dialog for the subsequent ones. This way, you don't have to keep track of the nesting level and just need to call returnFromDialog once to get out. Richard Sent from my iPhone On Feb 10, 2009, at 10:31 PM, Luhtala Santeri wrote: > Hmm. Raising this old issue into discussion again... > > It does not work this way. Calling the returnFromDialog again does > not have any affect. To my understanding there needs to be a submit > from the 'parent' dialog in order to close it by calling > returnFromDialog. > > Any other suggestions? Is there any elegant way to achieve the > functionality we want? > > S > > -----Original Message----- > From: Richard Yee [mailto:ryee@cruzio.com] > Sent: 19. joulukuuta 2008 16:49 > To: MyFaces Discussion > Subject: Re: [Trinidad] How to get out of Trinidad dialog scope with > multiple dialogs > > Call returnFromDialog again right after you call returnFromDialog for > Dialog 2. Or, you might be able to initiate Dialog1 and navigate to > the > second page as a regular view as opposed to opening another dialog. It > would appear in the same window as dialog1. Then you would only need > to > call returnFromDialog once. > > -R > > Luhtala Santeri wrote: >> >> We have a problem with getting out of dialog scope. The situation is >> as follows: >> >> >> >> Mainpage.jspx -> Dialog1.jspx -> Dialog2.jspx >> >> >> >> Now in the Dialog2 the user clicks a link and we need to redirect out >> of the JSF app to another web app and for that we want to get back to >> Mainpage. >> >> We can get out of the Dialog2 scope(calling returnFromDialog) but how >> to get out of Dialog1 scope programmatically without any user >> input(submit) at that point. So in other words we want out of both >> dialogs scope with one submit. >> >> >> >> Santeri >> >