Hi
I create an entity validation rule and set an error message for ir. This rule check that you don't insert record more than a certain number.
But when I violate this rule in my jsf page, the error massage display but it seems that record inserted too. When I refresh the page I see that record not inserted.
for resolve I write a bean code for my commit button:
OperationBinding operationBinding =
bindingsImpl.getOperationBinding("Commit");
Object result = operationBinding.execute();
if (!operationBinding.getErrors().isEmpty()) {
showMsg("ErrorKey01");
bindingsImpl.getOperationBinding("Rollback").execute();
}
But now I cant distinguish what rule is violated.
What do I do?