The current page includes the following entries in its page definition file:
<bindings>
<attributeValues IterBinding=”EmployeesView1Iterator” id=”Email”>
<AttrNames>
<Item Value=”Email”/>
</AttrNames>
</attributeValues>
</bindings>
Programmatically, in a managed bean, you need to read the current EmployeesView’s email into a string.
You write the following code to do this:
DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent
().getCurrentBindingsEntry();
XXXXXX emailBinding = (XXXXXX)bc.findCtrlBinding(“Email”);
String emailValue = emailBinding.getAttribute().getString();
What single class must you substitute for XXXXXX in the two locations in the code? (Choose the best answer.)
A.
CtrlBindingContext
B.
JUCtrlActionBinding
C.
JUCtrlValueBinding
D.
DCValueBinding
E.
BCValueBinding
Explanation:
The findCtrlBinding method returns a control binding with the given name. Returns null if name is not found.
public final DCControlBinding findCtrlBinding(java.lang.String name)
A JUCtrlValueBinding class responsible for maintaining which attribute(s) of a row this binding can display/
update.
https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/uicli/binding/
JUCtrlValueBinding.html
https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/adf/model/binding/DCBindingContainer.html