• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GUI problem

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have two buttons Book Flight and Cancel in the MakeReservation Tab. If the user first clicks BookFlight button, then booking starts if the requested number of seats are avaialable. While this process is going on, (i.e before the confirmation dialog is displayed), if the user clicks Cancel button again what should be done. Should the reservation be canceled or left unaltered as he has already clicked BookFlight button.
 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


While this process is going on, (i.e before the confirmation dialog is displayed), if the user clicks Cancel button again what should be done. Should the reservation be canceled or left unaltered as he has already clicked BookFlight button.


I recommend that you don't implement "Cancel", -- it creates a lot of questions. Once you invoke a method on the remote object, the server is in control. If you happen to click "cancel" when the booking is done, you will need to effectively "unbook" the flight. Too much trouble.
Eugene.
 
Saraswathy Krishnamoorth
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay I will remove the cancel button. Thanks Eugene.
 
Don't touch me. And dont' touch this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic