How to prevent conflict of validation rule on entity with not null constrai
bglazyrFeb 15 2012 — edited Feb 15 2012Hello!
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