Runtime components : Channels components : AJAX channel : Concepts : Validation
  
Validation
Data from AJAX requests is validated both on the server and on the client.
Validation of AJAX data on the client takes place in the JavaScript environment of the browser. The Dojo-based widgets validates whether data that has been entered by a user to a widget conforms to the values that have been specified for the attributes of the widget. If the data that has been entered is invalid, an error message is displayed on the browser as a tooltip message.
There are two types of data validation that take place on the server: single data field validation and business function cross-field validation. The validation process on the server for AJAX requests is the same as the validation process for HTML requests. For more information on single data field validation and business function cross-field validation, see HTML Validation.
However, error messages for AJAX requests are not displayed in the same way as error messages for HTML requests. For AJAX requests, single data field validation error messages are displayed as tooltip messages and business function cross-field validation error messages are displayed on the Message widget. For more information on how to configure error messages in the Message widget for business function cross-field validation errors, refer to the “How to display cross-field validation error messages in the message widget” section.
Go up to
Concepts