Difference between revisions of "Error messages LnF"

From Catglobe Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 +
<span style="color: #ff9900">'''Error messages LnF'''</span>
 +
 +
#Error messages should always explain exactly what the user did wrong. If user cannot immediately understand what the message means; it is a bug!
 +
#If the same error message is used for two different bugs - it is a bug!
 +
#Errors should appear in the top of dialogues / windows in red color in bullet format. All the errors that are registered should be listed.
 +
#The GUI should not refresh before showing the errors (if possible)
 +
#A general guideline for whether a validation of a field should happens client side or server side is as follows: If the object/s to save can be or is expected to be inserted many places and the logic of how the object should look is the same from all these interfaces, then the check of the correctness of the values of the object/s should happen server side. Generally it is not an idea to validate data client side, since business logic should not be put in GUI!
 +
#A general guideline for whether a validation happens on leave a field or on save screen/dialogue is as follows: If the value can be tested immediately on client side and it is fast, e.g. check whether illegal character is used, it should happen immediately. Exceptions to the rule are when fields depend on other fields, then it is better to just make sure that user is notified when he has finished all fields and is saving.<br>
 +
 
[[Category:LnF_guidelines]]
 
[[Category:LnF_guidelines]]

Revision as of 08:29, 24 December 2008

Error messages LnF

  1. Error messages should always explain exactly what the user did wrong. If user cannot immediately understand what the message means; it is a bug!
  2. If the same error message is used for two different bugs - it is a bug!
  3. Errors should appear in the top of dialogues / windows in red color in bullet format. All the errors that are registered should be listed.
  4. The GUI should not refresh before showing the errors (if possible)
  5. A general guideline for whether a validation of a field should happens client side or server side is as follows: If the object/s to save can be or is expected to be inserted many places and the logic of how the object should look is the same from all these interfaces, then the check of the correctness of the values of the object/s should happen server side. Generally it is not an idea to validate data client side, since business logic should not be put in GUI!
  6. A general guideline for whether a validation happens on leave a field or on save screen/dialogue is as follows: If the value can be tested immediately on client side and it is fast, e.g. check whether illegal character is used, it should happen immediately. Exceptions to the rule are when fields depend on other fields, then it is better to just make sure that user is notified when he has finished all fields and is saving.