Some people here have said that we should only do what the spec asks us to do, nothing more. That leads to my question:
Since my requirement spec says no where that I must implement any kind of input validation and further more says "Note that for this application, you should assume that customers and CSRs know their customer ids."
Will I lose points for lack of validation?
Should I prompt the user to retry or end the program on bad input?
Thanks in advance!
The best way IMHO to put input validation on that dialog box is to make a list of all hotel names and all cities in the database, and put them both in JComboBoxes. That's friendlier to your users [than my approach] but more work to implement.
Originally posted by Sean Gildea:
Thanks for your reply,
In my search, users can specify a hotel name and/or location.
Should I validate correct text there?
Should I create a dialog box popup if incorrect and allow them to retry?
[ December 03, 2004: Message edited by: Sean Gildea ]
You see with a JComboBox for these fileds, they can only select the values in the database, and therefore never put in bad data, since it is in the database. This is the most user friendly.