If somehow you need to create your own validation logic to meet your business needs. You can either create a validation method on the page's backing bean (if you want custom validation for a component on a single page), or create JSF validator classes (if you want to reuse the validation logics by various pages in the application). In the real world, of course creating the custom JSF validator classes would be adopted for ADF application for better reuse and maintantence. Here I present an example on creating custom validators in ADF application. In the example, I created two validators, one for email validation and the other for dateMustComeAfter valiation. You can add as many as you need to meet your requirements. 1. Create a new application based on ADF template. 2. In the viewController layer, create two validators classes - one called "EmailValidator" - to validate a valid email address - and the other called "DateMustComeAfterValidator" - to validate one
To attain knowledge, add things everyday. To attain wisdom, remove things every day.