tag:blogger.com,1999:blog-4496361440376457974.post7413002174179002583..comments2024-03-27T04:40:00.049-07:00Comments on Connecting the {Dots}: Validating The Entity Collection When You Commit the TransactionJobinesh Purushothamanhttp://www.blogger.com/profile/02803942794714887699noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-4496361440376457974.post-31903659996159903192013-10-21T10:29:20.746-07:002013-10-21T10:29:20.746-07:00Hi Jobinesh,
I have implemented the solution you ...Hi Jobinesh,<br /><br />I have implemented the solution you describe. The first time the validation executes successfully and works as expected. If I try and commit the data again, the validation does not get executed and the data is committed to the database. Is there something that I am missing?<br /><br />Regards<br /><br />LeonJustMehttps://www.blogger.com/profile/04059324156747450082noreply@blogger.comtag:blogger.com,1999:blog-4496361440376457974.post-14972895725424427712013-05-02T05:02:51.580-07:002013-05-02T05:02:51.580-07:00Same as I mentioned earlier...Try wrapping them in...Same as I mentioned earlier...Try wrapping them in single exception and throw the wrapped exception manually Jobinesh Purushothamanhttps://www.blogger.com/profile/02803942794714887699noreply@blogger.comtag:blogger.com,1999:blog-4496361440376457974.post-59148254701843034682013-05-02T04:58:39.797-07:002013-05-02T04:58:39.797-07:00Thanks Jobinesh.
Regarding the second issue, can...Thanks Jobinesh. <br /><br />Regarding the second issue, can you tell me how to fix it? Because, after validation errors are shown, nothing is allowed on screen, not even I can correct the error and provide valid value.kumarhttps://www.blogger.com/profile/10975316729471699364noreply@blogger.comtag:blogger.com,1999:blog-4496361440376457974.post-24956298867065050862013-05-02T04:36:33.952-07:002013-05-02T04:36:33.952-07:00Ch 11 in my book (oracle adf real world developer&...Ch 11 in my book (oracle adf real world developer's guide) has samples on wrapping multiple validations errors in single exception. The sample is too big to post here. In case you don't have a copy drop your email id here, I'll send u the code snippetJobinesh Purushothamanhttps://www.blogger.com/profile/02803942794714887699noreply@blogger.comtag:blogger.com,1999:blog-4496361440376457974.post-66908227646189924992013-05-02T04:27:49.981-07:002013-05-02T04:27:49.981-07:00Hi Jobinesh,
1. From the transaction level valid...Hi Jobinesh, <br /><br />1. From the transaction level validation method I have to show different validation error messages. So I cannot stick to the same error message I have defined while creating the validation in the business rules section of entity. Is this possible? Right now I have approached this in the following way. Can you tell me if this is the right way?<br /><br />ResourceBundleDef resourceBundle = getResourceBundleDef();<br />if (somecondition){<br /> throw new ValidationException(resourceBundle, ERROR_MESSAGE_KEY, new Object[] {parameters});<br />}<br />else if (somecondition2){<br /> throw new ValidationException(resourceBundle, ERROR_MESSAGE_KEY2, new Object[]{parameters});<br />}<br /><br />2. Once the error is raised, I am not able to do any action on the screen(no selection) as the same error message is kept popping up and being added to the list of errors. kumarhttps://www.blogger.com/profile/10975316729471699364noreply@blogger.comtag:blogger.com,1999:blog-4496361440376457974.post-28789423521205936922012-01-24T04:20:42.740-08:002012-01-24T04:20:42.740-08:00This is a bug, please contact Oracle support if yo...This is a bug, please contact Oracle support if you are facing this issue in your App - this line is not for you Peter :-)Jobinesh Purushothamanhttps://www.blogger.com/profile/02803942794714887699noreply@blogger.comtag:blogger.com,1999:blog-4496361440376457974.post-48595793396265303732012-01-20T02:14:27.836-08:002012-01-20T02:14:27.836-08:00Peter,
I can see SkipValidation="skipDataCont...Peter,<br />I can see SkipValidation="skipDataControls" skips both EO levl an transaction level validations in my sample. Waiting for dev team's response on this . Will keep you posted.Jobinesh Purushothamanhttps://www.blogger.com/profile/02803942794714887699noreply@blogger.comtag:blogger.com,1999:blog-4496361440376457974.post-11458927493716127672012-01-19T09:06:44.717-08:002012-01-19T09:06:44.717-08:00Does the use of SkipValidation="skipDataContr...Does the use of SkipValidation="skipDataControls" mean that all entity level validators are deferred or just those that have transactionlevel = true?Peter O'Brienhttps://www.blogger.com/profile/05549543084958276823noreply@blogger.com