You all know about ADF model level validation , we can apply variety of validation on model (Entity Object), as for length, compare, key, regular expression, script and unique key etc.
I am not going to describe whole process for model layer validation, for detailed tutorial on EO level validation see -Dynamic (parameterize) model level validation using message token
Now see how we can execute these validation conditionally -
I am not going to describe whole process for model layer validation, for detailed tutorial on EO level validation see -Dynamic (parameterize) model level validation using message token
Now see how we can execute these validation conditionally -
- When we apply unique key validation on Entity Object- this window appears-
- Now go to Validation Execution and write your condition in given box for that you want to execute validation
- Now go to Failure Handling tab and write your failure handling message, and you are done
- Now run your application and see how validation executes for your condition
- this functionality is really helpful and sometimes avoids writing lot of managed bean code