Based on JDeveloper 220.127.116.11, but javadoc from 18.104.22.168.0 seems to indicate the same behavior there
I need programmatic access to the region-model of a taskflow binding. The JSF page itself does this by
This requires the following code from java:
This gives an audit rule error since DCTaskFlowBinding is from an ADF internal package. DCBindingContainer.findRegionBinding which returns a oracle.adf.model.RegionBinding interface but this doesn't have the getRegionModel method so we require the case to private DCTaskFlowBinding.
Since a default JSF page gets the region model the same way I consider it part of the public API, so I would expect the java classes to expose this through non-internal classes as well. As far as I can see it there are two solutions:
- make DCTaskFlowBinding a non-internal class (less preferred solution as it would mean refactoring to a new package and still requires casting of the findRegionBinding result)
- make getRegionModel part of the public oracle.adf.model.RegionBinding interface (preferred solution from my point of view)
PS. As a rule of thumb shouldn't all EL expression that get generated into JSF pages work through non-internal ADF classes?