Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to know not to validate on deleting the row?

566709Feb 11 2009 — edited Feb 16 2009
Hi all!

I'm using ADF BC 10.1.3.3 and have implemented Franks How suppress item validation on partial submit. So, I've disabled client validation using <client-validation-disabled>true</client-validation-disabled> in adf-faces-confib.xml.
I have a jspx on which I have an edit form and below it a read-only table with the delete button on each row. Both are using same iterator binding. 4 fields on this iterator are mandatory, done in jspx as:
required="#{bindings.Att.mandatory &amp;&amp; !backing_Bean.ppr}"
showRequired="#{bindings.Att.mandatory}"
This works OK when editing fields with autoSubmit set to TRUE. The problem occurs when the user accidentally adds a new row into the table and then tries to delete it. In this case the validation is executed and all mandatory fields need to be entered a value. This is quite inconvenient and I would like to delete the row without any validation. The code on the delete button actionListener is:
1st create a valueBinding on the iterator
2nd access the row data
3rd remove the row using dciter.removeRowWithKey(rowKey)

I've tried setting partialSubmit on this button to TRUE and in this case the validation is not executed but the page is not working correctly in this way: the edit form is not refreshed and then as I select another row in the table all data is somehow mixed and the empty row occurs again in the editing form.

Is there a simple way to tell the application not to validate when the deleting is in action? I even tried putting a parameter into process scope when clicking the delete button so I can read this parameter in my isPpr method in a backing bean but the isPpr is either executed before the delete actionListener method or the execute action listener is executed in whole and if I reset the parameter at the end of the method than the isPpr method is again not aware of the right parameter value.

Please, this is quite important and I'd appreciate any help.

Kind regards,
BB
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2009
Added on Feb 11 2009
6 comments
1,086 views