Handling Errors of XUI Engine

XML UI provides an Error Handling system to handle errors or invalidate state on UI Interchanging. When an error occurs, the widget will do as follows:
  1. On validation failure
    1. For advanced property (for example minlength)

      Action: show prompt message on focus

      Color: the background and foreground color of the widget with error will be as defined in the global settings of XML UI Engine.

    2. For user injected Validator

      Action: show the user defined error message (from the injected validator) on focus.

      Color: the background and foreground color of the widget with error will be as defined in the global settings of XML UI Engine.

  2. On miss required field

    Action: show prompt message on focus

    Color: the background color of the widget with error will be as defined in the global settings of XML UI Engine.

  3. The button with disableOnError property

    Action: disable the button whose property of disableOnError equals true.

    Color: NA