Skip Validation in ADF
We can add validation at View , Model and business Services as wee need.
Sometimes we need to skip that validation and continue in executing the requested action.
Some developers in set immediate property to TRUE for UIcomponent but there is drawback of that property that it allows processing of UIcomponent to move to Apply Request Values phase of the life cycle.
We have another solution for skipping validation without moving up to Apply Request Values phase of the life cycle as illustrated below.
The solution is using skip validation property of page definition file.
open page definition file and choose root node and set skip validation property to true.
I will illustrate different value of skip validation property
a- skip validation = truewill bypass the ADF Model validation.
the validation happens only when you commit the transaction.
b- skip validation = customat that case I will use customValidator from java bean to control the validation.
c- skip validation = skipDataControlsThat means that it will skip data control level only.
d- skip validation = falseThat it is the default value that doesn't allow skipping validation
Mahmoud A. El-Sayed