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.

051516_0439_Howtoturnof1 How to turn off Oracle ADF form validation

 

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.

 

051516_0439_Howtoturnof2 How to turn off Oracle ADF form validation

 

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.

govindan How to turn off Oracle ADF form validation
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

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 šŸ™‚
govindan How to turn off Oracle ADF form validation
Connect me
By | 2016-12-28T23:54:23+00:00 May 14th, 2016|Categories: ADF|Tags: , , , |0 Comments
Like us on Facebook.
Connect!