Feb 9th, 2006, 03:29 PM
I just started using the spring rcp demo petapp application. On the login screen if you hit cancel button, it takes you into the initial ownermanagerview screen. I want to modify so the application will close, if the user hits cancel. Please let me know how to do this.
Feb 10th, 2006, 02:51 AM
Originally Posted by Tennyson
I'm new to the framework, so I might be wrong, but try changing the loginCommand definition in commands-context.xml. Change the closeOnCancel property to 'true'.
Hope this helps
Feb 10th, 2006, 08:51 AM
I tried changing the login command
still, it allows me to go into the initial view. Thanks for your reply. Let me know if you think of any other way.
Apr 5th, 2006, 04:06 PM
Are you sure you have the latest code? I forget exactly when I made the changes to LoginCommand, but it was at least 6 months ago.
If you've properly set closeOnCancel, then the application should definitely exit.
Are you sure that the execution of the petclinic sample is picking up your modified context?
Apr 6th, 2006, 07:52 AM
I don't have a problem with this anymore. It is the codebase, I think. I have the latest and greatest now. Works like charm. Have a great day. Thanks.