On 12/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Ok, I understand your point of view. I have two more questions Craig: - Is there a way to know the current dialog name?
The request scoped attribute named "dialog" is of type DialogContext, from which you can call getName() to get the dialog name. - In my version of shale, when I call an outcome not present in the
dialog, I receive an Exception (generic). Is there the possibility to receive a specific Exception? (in this way I have the possibility to send a manage the error).
Are you using the "Basic" implementation with a recent nightly build? If so, you should actually be getting an IllegalStateException in this case, with a message like: Cannot find transition 'foo' for state 'bar' of dialog 'baz' Having some framework-specific exceptions for cases like this seems like it would be a good idea. Also, if you use my suggestion of making your data object a DialogContextListener, you'll be notified (via a call to onException()) when such an exception occurs. Thanks in advance
Mario
Craig
