Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 1372 invoked from network); 3 Oct 2008 09:51:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2008 09:51:34 -0000 Received: (qmail 32257 invoked by uid 500); 3 Oct 2008 09:51:29 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 32205 invoked by uid 500); 3 Oct 2008 09:51:29 -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 32194 invoked by uid 99); 3 Oct 2008 09:51:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 02:51:29 -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: local policy) Received: from [80.250.12.129] (HELO aura.cz) (80.250.12.129) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 09:50:27 +0000 Received: (qmail 20682 invoked by uid 621); 3 Oct 2008 09:50:58 -0000 Received: from 192.168.1.153 by server1.uvoz.aura.cz (envelope-from , uid 502) with qmail-scanner-2.02 (avgd: ???. spamassassin: 3.1.9. Clear:RC:1(192.168.1.153):. Processed in 0.089303 secs); 03 Oct 2008 09:50:58 -0000 Received: from unknown (HELO [192.168.1.153]) ([192.168.1.153]) (envelope-sender ) by aura.cz (qmail-ldap-1.03) with SMTP for ; 3 Oct 2008 09:50:58 -0000 Subject: Re: [trinidad] manual dialog return listener problem From: Martin =?UTF-8?Q?Ko=C4=8D=C3=AD?= To: MyFaces Discussion In-Reply-To: <65bb6a800810021209g72c58dc0y9a2730eaeab45b2@mail.gmail.com> References: <65bb6a800809290859u3ded5c57k6bbd6bc1500390a8@mail.gmail.com> <65bb6a800809291414m4c65c383v9c4f0fa17f8c7e48@mail.gmail.com> <65bb6a800810021209g72c58dc0y9a2730eaeab45b2@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 03 Oct 2008 12:04:54 +0200 Message-Id: <1223028294.8311.4.camel@markoc.uvoz.aura.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, this is not a bug - you have requestContext.launchDialog(dialog, null, // not launched from any component in your source, but ReturnEvent is delivered from a component. Get CommandButton component (from binding or ActionEvent) and put it as third parameter to launchDialog method. Martin Steve Horne píše v Čt 02. 10. 2008 v 14:09 -0500: > BUMP > > Nobody uses dialogs without navigation rules? > > On Mon, Sep 29, 2008 at 4:14 PM, Steve Horne > wrote: > I have created a JIRA ticket and attached an example WAR file > with source: > > https://issues.apache.org/jira/browse/TRINIDAD-1244 > > > > > On Mon, Sep 29, 2008 at 11:04 AM, Andrew Robinson > wrote: > The dialog return code is a bit hard to sometimes look > through. Do you > have a small test case to add to a JIRA ticket so that > we can have a > look (easier to debug the dialog code than try to > think about what may > be going wrong)? > > -A > > > On Mon, Sep 29, 2008 at 9:59 AM, Steve Horne > wrote: > > I am using Trinidad and Facelets. I have a > commandButton that has an action > > binding to a backing bean method that > programmatically launches a dialog > > (facelet). Here is my commandButton: > > > > action="#{customerLookupSupport.openDialog}" > > useWindow="true" partialSubmit="true" > > > returnListener="#{backer.customerLookupReturnListener}"/> > > > > My dialog has a link binding to a method that calls > > RequestContext.returnFromDialog(). > > > > Everything works properly- the dialog appears and > when the link in the > > dialog is clicked, the returnFromDialog method > executes and the dialog is > > popped-down. However, the returnListener is never > called. Am I wrong to > > expect this to work this way when using programmatic > launching/closing of > > the dialog? > > > > Thanks in advance for your advice. > > > > -Steve > > > > -- > > "Many men go fishing all of their lives without > knowing it is not fish they > > are after." > > > > - Henry David Thoreau > > > > > > > > -- > "Many men go fishing all of their lives without knowing it is > not fish they are after." > > - Henry David Thoreau > > > > > -- > "Many men go fishing all of their lives without knowing it is not fish > they are after." > > - Henry David Thoreau >