Thanks, but there is no way to configure a listener statically (for example using a configuration file)? I need to configure the same listener for each dialog started, but I understand that both solution need to be done by the programmer.
Mario -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: 25 maggio 2007 19.03 To: [email protected] Subject: Re: How configure DialogContextListener? On 5/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, how can i configure a DialogContextListener? > > Two different ways: (1) Get access to the DialogContext instance for the currently active dialog, then call addDialogContextListener() on it, passing the instance of your listener. This is the usual JavaBeans pattern for registering event listeners. (2) If you are using the getData/setData methods to save state information for your dialog, *and* the class of the object you pass to setData implements DialogContextListener, it will automatically be registered as a listener and will receive events, for as long as it is the data value for this dialog. Craig > > Regards > > Mario > > > > > > This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. > This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
