You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 29 Next »

WebWork relies on XWork's validation framework to enable the application of input validation rules to your Actions before they are executed. This section only provides the bare minimum to get you started and focuses on WebWork's extension of the XWork validators to support client-side validation.

Please consult XWork's validation framework documentation for complete details.

There is also an option for AJAX based asynchronous validation, please see Remote Form Validation for more information.

Reference pages

  1. Simple validators
  2. Visitor validation
  3. Client-Side Validation
  4. Validation Examples

Registering Validators

Error formatting macro: snippet: java.lang.NullPointerException

This list declares all the validators that comes with WebWork.

Error formatting macro: snippet: java.lang.NullPointerException

Information

Error formatting macro: snippet: java.lang.NullPointerException

Warning

Error formatting macro: snippet: java.lang.NullPointerException

Turning on Validation

Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException

Note: The default validationWorkflowStack already includes this.

Validator Scopes

Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException

Notes

Error formatting macro: snippet: java.lang.NullPointerException

Defining Validation Rules

Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException

Validator Flavour

Error formatting macro: snippet: java.lang.NullPointerException

Non-Field Validator Vs Field-Validator

Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException

Short-Curcuiting Validator

Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException

How Validators of an Action Are found

Error formatting macro: snippet: java.lang.NullPointerException
  • No labels