Home » Developer & Programmer » JDeveloper, Java & XML » Validation error message management (11.1.1.2.0)
Validation error message management [message #447564] Tue, 16 March 2010 02:09 Go to next message
samaneh
Messages: 5
Registered: September 2009
Location: Iran - Esfahan
Junior Member
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?
Re: Validation error message management [message #450782 is a reply to message #447564] Fri, 09 April 2010 03:19 Go to previous message
ying0515
Messages: 7
Registered: April 2010
Location: Taiwan
Junior Member
is OAF Page?
Previous Topic: OAF Programming insert row VO,but inner-table no data show?
Next Topic: oracle question
Goto Forum:
  


Current Time: Thu Mar 28 17:37:58 CDT 2024