251 total views, 1 views today
How to turn off ADF form validation
Default the validation is turned on for UI component in ADF, that is true for adf-form as well. Consider a User registration form, when a user enters data and submits it, an action triggered to the server and creates an account. Most of the time we required validation before the form has been submitted like date format should be MM/DD/YY and age should be a number. But for some situation we really don’t require validation like, deleting the form, navigate to another page, or resetting the form.
In the below example, I’ve tried to delete an empty form but it throws validation error and prints each UI component in the form is empty.
To turn off the form validation while clicking the Delete button, Set the property immediate to true in the property inspector as shown below. After that, ADF will not validate the form whenever Delete action triggered.
There is one exception here, if you setting the immediate property to any of the input component (inputText) in the Form then the validation occurs . I will cover the topic briefly in my another post.
The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.
Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
Latest posts by Govind
- How to encode and decode base64Binary datatype in Oracle BPEL - December 11, 2017
- How to Read a File using Oracle BPEL File Adapter Example - December 11, 2017
- How to write a File using Oracle BPEL File Adapter Example - December 10, 2017