January 2012
Intermediate to advanced
406 pages
11h 11m
English
At the ADF-BC layer, built-in validators are stored in the XML metadata definition file with no ability to customize the exception message and/or centralize the application error messages in a single application-wide message bundle file. To overcome this you can extend the oracle.jbo.ValidationException
and oracle.
jbo.AttrValException classes. Then in your custom entity object implementation class you can override the validateEntity() and setAttributeInternal() methods to throw these custom exceptions instead. Even better, if you have gone through the process of creating framework extension classes (see Setting up BC base classes, Chapter 1, Pre-requisites to Success: ADF Project Setup and ...
Read now
Unlock full access