ADF clients, including a JClient, use a client configuration file called
DataBindings.cpx. At runtime, the metadata definitions in this file
create the Oracle ADF data binding context and permit the client
application to access the business services using the specified runtime
configuration. When you use the JDeveloper design time tools to create
client panels, forms, and pages, the DataBindings.cpx is
created in the View (or
ViewController) project.
To view the DataBindings.cpx file double-click the
DataBindings.cpx file in the View project in the Application
Navigator.
This is an example of a DataBindings.cpx file for a project
containing and empty JClient form, Form1, and an empty
JClient panel, Panel1.
<?xml version='1.0' encoding='windows-1252' ?>
<JboProject
id="DataBindings"
xmlns="http://xmlns.oracle.com/adfm"
SeparateXMLFiles="false"
Package=""
ClientType="JClient" >
<Contents >
<Containee
id="Form1UIModel"
ObjectType="BindingContainerReference"
FullName="view.Form1UIModel" >
</Containee>
<Containee
id="Panel1UIModel"
ObjectType="BindingContainerReference"
FullName="view.Panel1UIModel" >
</Containee>
</Contents>
</JboProject>
The following example shows the DataBindings.cpx file, from
above, after using the Data Control Palette to add a databound control
to the panel. The model for this based on an ADF Business Components
project with an application module called AppModule. Notice
that the data control for that application module has been added,
showing configuration parameters.
<?xml version='1.0' encoding='windows-1252' ?>
<JboProject
id="DataBindings"
xmlns="http://xmlns.oracle.com/adfm"
SeparateXMLFiles="false"
Package=""
ClientType="JClient" >
<Contents >
<DataControl
id="model_AppModuleDataControl"
SupportsFindMode="true"
SupportsTransactions="true"
Package="model"
FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
DTClass="oracle.adf.dt.datacontrols.JUDTBC4JDataControl"
Configuration="AppModuleLocal" >
<Parameters >
<Parameter
name="Sync"
value="Batch" >
</Parameter>
</Parameters>
</DataControl>
<Containee
id="Panel1UIModel"
ObjectType="BindingContainerReference"
FullName="view.Panel1UIModel" >
</Containee>
</Contents>
</JboProject>
For further details about the properties of the DataBindings.cpx
file, see About the
ADF-Specific Project Files.
Changing Client Data
Model References for JClient Forms
Creating a Client Data Model Definition for JClient Forms
Copyright © 1997, 2004, Oracle. All rights reserved.