EGL Reference Guide for iSeries

Validation

If the JSP-based JSF tags perform data conversion, validation, or event handling, the JSF run time does the necessary processing as soon as the user submits the Web page. If errors are found, the JSF run time may re-display the page without passing control to the run-time page handler. If the page handler receives control, however, the page handler may conduct a set of EGL-based validations.

The EGL-based validations occur if you specify the following details when you declare the page handler:

The page handler oversees the edits in the following order, but only for items whose values were changed by the user:

  1. All the elementary and type-based edits, even if some fail
  2. (If the prior edits were successful) all the table edits, even if some fail
  3. (If the prior edits were successful) all the field-edit functions, even if some fail
  4. (If all prior edits were successful) the pageHandler edit function

The page-item property validationOrder defines the order in which both the individual input fields are edited and the field validator functions are invoked.

If no validationOrder properties are specified, the default is the order of items defined in the page handler, from top to bottom. If validationOrder is defined for some but not all of the items in a page handler, validation of all items with the validationOrder property occurs first, in the specified order. Then, validation of items without the validationOrder property occurs in the order of items in the page handler, from top to bottom.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]