Adding validation rules in a fusion web application
A typical enterprise application may want to perform certain validations at client-side and certain things at server-side. The idea is to detect and report the errors as soon as possible to the end user. Oracle ADF allows you to perform validations on both client- and server-side. For a fusion web application, client-side validation is performed in the browser itself without performing a server round trip. Client-side validation is typically used to validate the basic syntax and semantics of the user input. More business critical validations, which involve pulling data from database or interaction with third party services, are performed on the server. This is done when the user submits a page.
For an ADF web application, you can enable validations at three different layers as follows:
ADF view (ADF Faces)
ADF model
ADF Business Components
The validations added in different layers are triggered at different stages in a page life cycle. When...