You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Adam Winer <aw...@gmail.com> on 2007/04/04 22:28:54 UTC

Re: returnListener not called from dialog

This absolutely should work.  Did you ever get it working?
(I've been away from e-mail for the last week and a bit).

-- Adam


On 3/23/07, Bertrand, Shawn R <sh...@tycoelectronics.com> wrote:
> Hi all,
>
>
>
> I have a commandButton which has a returnListener defined, and the
> button uses "dialog:" notation (and its consequent navigation rule) to
> display the popup.  The popup has 2 buttons (ok and cancel), both of
> which have a declared returnActionListener.  I was expecting the
> returnListener on the originating button to be called with the value of
> the returnActionListener tag, but I don't see that happening.  I've also
> tried using an actionListener on the originating button and calling
> launchDialog, but also failed to present a call into the returnListener.
>
>
>
> The documentation of the returnActionListener is pretty clear, but I
> must be missing something.  Any thoughts?
>
>
>
> Thanks in advance,
>
>
>
> Shawn Bertrand
>
> Tyco Electronics
>
>
>
>

RE: returnListener not called from dialog

Posted by "Bertrand, Shawn R" <sh...@tycoelectronics.com>.
Thanks for the reply, Adam.

We did end up using an explicit actionListener instead of
returnActionListener, but I do expect to use returnActionListener again
in the near future.  I'll let you know if any problems arise.

Shawn


-----Original Message-----
From: Adam Winer [mailto:awiner@gmail.com] 
Sent: Wednesday, April 04, 2007 6:29 PM
To: adffaces-user@incubator.apache.org
Subject: Re: returnListener not called from dialog

This absolutely should work.  Did you ever get it working?
(I've been away from e-mail for the last week and a bit).

-- Adam


On 3/23/07, Bertrand, Shawn R <sh...@tycoelectronics.com>
wrote:
> Hi all,
>
>
>
> I have a commandButton which has a returnListener defined, and the
> button uses "dialog:" notation (and its consequent navigation rule) to
> display the popup.  The popup has 2 buttons (ok and cancel), both of
> which have a declared returnActionListener.  I was expecting the
> returnListener on the originating button to be called with the value
of
> the returnActionListener tag, but I don't see that happening.  I've
also
> tried using an actionListener on the originating button and calling
> launchDialog, but also failed to present a call into the
returnListener.
>
>
>
> The documentation of the returnActionListener is pretty clear, but I
> must be missing something.  Any thoughts?
>
>
>
> Thanks in advance,
>
>
>
> Shawn Bertrand
>
> Tyco Electronics
>
>
>
>

RE: returnListener not called from dialog

Posted by "Bertrand, Shawn R" <sh...@tycoelectronics.com>.
I am sure all buttons involved (dialog-originating button and ok/cancel
buttons in the dialog) were rendered and enabled.

Shawn


-----Original Message-----
From: Jeroen Benckhuijsen [mailto:jeroen.benckhuijsen@atosorigin.com] 
Sent: Thursday, April 05, 2007 1:55 AM
To: adffaces-user@incubator.apache.org
Subject: Re: returnListener not called from dialog

Hi Shawn,

Don't know your exact situation, but I believe that the button should be
rendered and enabled (as default,that it when the originating page is
rebuild when ending the dialog) for the returnlistener to work. 

Not 100% sure of this though, perhaps someone can confirm this?

Regards,

Jeroen

On Wed, 2007-04-04 at 15:28 -0700, Adam Winer wrote:
> This absolutely should work.  Did you ever get it working?
> (I've been away from e-mail for the last week and a bit).
> 
> -- Adam
> 
> 
> On 3/23/07, Bertrand, Shawn R <sh...@tycoelectronics.com>
wrote:
> > Hi all,
> >
> >
> >
> > I have a commandButton which has a returnListener defined, and the
> > button uses "dialog:" notation (and its consequent navigation rule)
to
> > display the popup.  The popup has 2 buttons (ok and cancel), both of
> > which have a declared returnActionListener.  I was expecting the
> > returnListener on the originating button to be called with the value
of
> > the returnActionListener tag, but I don't see that happening.  I've
also
> > tried using an actionListener on the originating button and calling
> > launchDialog, but also failed to present a call into the
returnListener.
> >
> >
> >
> > The documentation of the returnActionListener is pretty clear, but I
> > must be missing something.  Any thoughts?
> >
> >
> >
> > Thanks in advance,
> >
> >
> >
> > Shawn Bertrand
> >
> > Tyco Electronics
> >
> >
> >
> >
> 

Re: returnListener not called from dialog

Posted by Jeroen Benckhuijsen <je...@atosorigin.com>.
Hi Shawn,

Don't know your exact situation, but I believe that the button should be
rendered and enabled (as default,that it when the originating page is
rebuild when ending the dialog) for the returnlistener to work. 

Not 100% sure of this though, perhaps someone can confirm this?

Regards,

Jeroen

On Wed, 2007-04-04 at 15:28 -0700, Adam Winer wrote:
> This absolutely should work.  Did you ever get it working?
> (I've been away from e-mail for the last week and a bit).
> 
> -- Adam
> 
> 
> On 3/23/07, Bertrand, Shawn R <sh...@tycoelectronics.com> wrote:
> > Hi all,
> >
> >
> >
> > I have a commandButton which has a returnListener defined, and the
> > button uses "dialog:" notation (and its consequent navigation rule) to
> > display the popup.  The popup has 2 buttons (ok and cancel), both of
> > which have a declared returnActionListener.  I was expecting the
> > returnListener on the originating button to be called with the value of
> > the returnActionListener tag, but I don't see that happening.  I've also
> > tried using an actionListener on the originating button and calling
> > launchDialog, but also failed to present a call into the returnListener.
> >
> >
> >
> > The documentation of the returnActionListener is pretty clear, but I
> > must be missing something.  Any thoughts?
> >
> >
> >
> > Thanks in advance,
> >
> >
> >
> > Shawn Bertrand
> >
> > Tyco Electronics
> >
> >
> >
> >
>