Professional Documents
Culture Documents
The Goal of “binding” in ADF is to map the various business service sources such as database, web
services data, and POJO data into the UI components that would present the data more effectively and
accurately with the ability to interact both ways between the business services and UI Applications.
Figure 1
∗ Data Controls extracts the underlying structure of the data collection or actions in the business
service and present the fields, operations according to the view objects created for the
application
∗ ADF Binding creates the necessary types of binding values from these data controls to be used in
the visual UI components.
Context:
Application created (Using Business Components or POJO)
Data Controls get created automatically when ‘business components’ used and view objects
defined Else by right click create data controls they get created (In POJOs Data Control
Description files ’.dcx’ and Structured Definitions ‘.xml’ files for java files get created).
When Data Controls are dragged and dropped into the pages and specific UI type selected
<Page_name>PageDef.xml gets created which will hold the connections for the bindings
through the executables with the data controls (figure 2) and ‘DataBindings.cpx’ is created
which keeps the mappings for pages and pagedef files.
Binding Objects
There are three kinds of Declarative Binding Objects
Types of Bindings
Using Bindings
Bindings can be simply created using the ADF process and could be simply accessed using the expression
language. Even though it’s possible as mentioned before, Bindings can be created using java classes as
well.
Expression Language can be used not only to get values but also for reaching attribute values of Bindings
Binding Classes
Bindings are defined at design time in XML and objects are created at run time. There are two kinds of
binding classes. The Generic Binding Classes are named with the prefix “JUCtrl” and specific ADF faces
binding classes are named with the prefix “FacesCtrl” (Has the makeCurrent method).
Other than using Expression language to access the bindings, sometimes we would have to create and
access bindings using java code. Following are the reasons;
Binding Context: - Way to look up at the binding container and to find current binding container
File databindings.cpx at runtime
Expression language access to data controls - # {data}
JUCtrlHierBinding: - for table, tree and tree table + DVT component bindings
Methods to give specific bindings to specific places
Figure 2: Bindings and Data Control Connections