Chapter 22. Custom Validation

Table of Contents

Custom Validation for the Store-Front
Configuring validation on data entered through the UI
Custom Validation for the Admin Application
CustomValidaton.properties file
Fields Supported by Custom Validation
CustomValidaton Using a Custom Engine

Configuring the Validation used in KonaKart.

Custom Validation for the Store-Front

This section defines how you configure the custom validation for the KonaKart application

Configuring validation on data entered through the UI

The forms in the storefront application use jQuery validation to provide JavaScript based validation which doesn't require a screen refresh.

The internationalized validation error messages are retrieved from the message catalog and are defined in MainLayout.jsp . The message keys are all prefixed with jquery.validator .

The validation criteria for the form fields are found within the JavaScript file called kk.validation.js . After installation, this file may be found in the KonaKart\webapps\konakart\script directory.