7 total views, 3 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
- JSF Login Logout Form Authentication Example - October 16, 2017
- How to Bookmark URL in JSF using GET method and ViewParam – example - October 14, 2017
- JSF Dynamic Navigation and how to use wildcard in navigation - October 12, 2017