RE: How know dialog name in onStart method of AbstractDialogContextListener
No, does not work because getDialogContext().getName() returns null (also in onStop() method). Does work in onEntry(String stateId) Any suggestion? -Original Message- From: Rahul Akolkar [mailto:[EMAIL PROTECTED] Sent: 2 luglio 2007 19.01 To: user@shale.apache.org Subject: Re: How know dialog name in onStart method of AbstractDialogContextListener On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, i'm using Shale Basic Dialog 1.1.0 and I have a my DialogContextListener extending AbstractDialogContextListener. In the onStart() method I need to know the dialog name is starting. How can I know it? snip/ public void onStart() { String dialogName = getDialogContext().getName(); // ... } -Rahul Thanks in advance Mario Buonopane 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.
Re: How know dialog name in onStart method of AbstractDialogContextListener
On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No, does not work because getDialogContext().getName() returns null (also in onStop() method). Does work in onEntry(String stateId) Any suggestion? snip/ Indeed, I see, it has to do with some internals of the basic implementation (the positions stack happens to be empty in both cases). Please raise an issue in JIRA [1] (component Dialog). -Rahul [1] http://issues.apache.org/struts/browse/SHALE -Original Message- From: Rahul Akolkar [mailto:[EMAIL PROTECTED] Sent: 2 luglio 2007 19.01 To: user@shale.apache.org Subject: Re: How know dialog name in onStart method of AbstractDialogContextListener On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, i'm using Shale Basic Dialog 1.1.0 and I have a my DialogContextListener extending AbstractDialogContextListener. In the onStart() method I need to know the dialog name is starting. How can I know it? snip/ public void onStart() { String dialogName = getDialogContext().getName(); // ... } -Rahul Thanks in advance Mario Buonopane