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 prevent conflict of validation rule on entity with not null constrai

bglazyrFeb 15 2012 — edited Feb 15 2012
Hello!
We figured out strange behavior of ADF BC:
We have a table with NOT NULL attribute.
We generate entity and VO by wizard. Attribute is marked as IsNotNull="true"
We define additional validation rule on this attribute - for example, compare with some literal constant or regular expression.
Ok, now strange behavior:
When user create new row in form based on VO and enter data that violate our validation rule he receive 2 error messages on that attribute:
a) message we defined in our validation rule
b) that attribute he just filled is mandatory in VO.
From my point of view it sounds crazy.

So, my question - how to prevent error message b) if user incorrectly filled attribute. He should receive only error message a) .
Of cause, if user forget to fill this attribute at all, he should receive error message b).
Thank you in advance
Boris
We use Jdeveloper 11.1.1.5
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2012
Added on Feb 15 2012
2 comments
196 views