|
[
Permlink
| « Hide
]
Adam Brod added a comment - 07/Jun/06 04:33 AM
It seems that using the back-button will often get the dialog into the intractable error state. We don't have to be super back-button friendly, but we can't pollute the user's session and give them errors on everything they do, just because they hit the back button one time.
one of the problem is that the exception raised is very generic (ie IllegalArgumentException). I think it could be at least changed to something a bit more specific, for example : ShaleStateMachineUnsynchronizedException or whatever instead of the IllegalArgument.
Without needing a too much complex change that seems to be needed to fix the whole stuff, it could add a way to deal with the issue. While there is still a bit more work to do for browser buttons (and there's an open issue for that already), the current shale-dialog functionality provides a much more robust mechanism for dealing with exceptions thrown during execution of a dialog -- you can register a listener whose onException() method will be called when such an exception is thrown, and can therefore deal with it as desired. So, I'm going to mark this improvement request as fixed.
|
|||||||||||||||||||||||||||||||||||||||||||