Validation Overview

Navigation:  Package Overview >

Validation Overview

Return to chapter overviewNext page

In any real-world application there's a need for some error-checking of the data entered by the user.  When the 3-tier architecture widely accepted for business solutions is used, there are two conceptual levels of such checks:

 

client-side validation;

server-side validation.

 

While the distribution of pieces of validation logic among these levels is an important issue individual to each application, the usual approach is to implement domain-specific validation logic dependent on business rules and data model of the application on the server side and more general and common validation logic - on the client. Examples of typical client-side validation of the user input are to check if a certain field is not empty, if a value is input in certain format, if a value lies in certain range etc.

 

Quality implementation of the client-side validation can greatly increase stability and usability of the application and give it professional look and feel. However, this often requires writing much of the routine code embedded into forms. In certain applications validation logic can represent the major part of the client-side code.

 

NG ValidatorsPack is the solution which can significantly simplify and speed up the routine implementation of the client-side validation logic and make the client code more concise and clear.