One of the bug requests I was fixing during this week was related to duplicate validation error message display on ADF UI. This was quite annoying to the users - the same validation error message displayed twice:
There was nothing special about this validation rule, as any other validation rule defined on ADF BC Entity Object:
I noticed something strange in Page Definition file. As per screenshot above, ADF UI renders only table component. However, in Page Definition file table binding was defined along with attribute binding for the Salary attribute:
Salary in the table is rendered from table binding, and as additionally we have attribute binding for the same element, this is causing the same validation error message reported twice (one for Salary in the table binding and another for Salary attribute binding):
Make sure not to leave duplicate bindings for the same attributes:
It reports only one validation error message, as expected:
Here you can download sample application with duplicate validation error message, try to fix it as described in this post - ADFValidationErrorApp.zip.
There was nothing special about this validation rule, as any other validation rule defined on ADF BC Entity Object:
I noticed something strange in Page Definition file. As per screenshot above, ADF UI renders only table component. However, in Page Definition file table binding was defined along with attribute binding for the Salary attribute:
Salary in the table is rendered from table binding, and as additionally we have attribute binding for the same element, this is causing the same validation error message reported twice (one for Salary in the table binding and another for Salary attribute binding):
Make sure not to leave duplicate bindings for the same attributes:
It reports only one validation error message, as expected:
Here you can download sample application with duplicate validation error message, try to fix it as described in this post - ADFValidationErrorApp.zip.
I have also encountered this issue when a field has autoSubmit set to true.
ReplyDeleteI think this will be related to different issue.
ReplyDeleteGood one. I got the exact same issue and deleted the extra attribute binding and the error is solved.
ReplyDeleteThanks a lot!
Great ! :)
ReplyDelete