Oracle Planning and Budgeting Cloud Service 2016 Implementation Specialist — Question 16
Consider the JSF managed bean code to execute a function in ADF Business Components via an af:button actionListener on a page: public void doSomethinq(ActionEvent event) {
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); OperationMethod method = bindings.getOperationBinding("appModuleMethod");
Map paramsMap = method.getParamsMap();
paramsMap.put ("someParameter","someValue");
method.execute();
}
Which three options must be implemented for this code to work? (Choose three.)
Answer options
- A. For the page definition file this code is called from, it must have a <methodAction> binding mapped to the ADF BC data control application module function.
- B. For the page definition file this code is called from, it must have a <parameter> binding mapped to the parameters of the ADF BC data control application module function.
- C. An appModuleMethod function must exist in the ADF BC application module to call from the <methodAction> binding.
- D. An appModuleMethod function must be exposed through the client interface editor of the ADF BC application module.
Correct answer: A, B, C
Explanation
The correct answers A, B, and C are essential for the code to function properly, as they ensure the necessary bindings and function existence are set up in the ADF BC framework. Option D is not required for the execution of the code since it pertains to exposing the method rather than binding it for use.