Creating ADF Bindings in the Structure Window

As an alternative to working with the Data Control Palette to design the application UI, you can create your document's ADF binding definition file (UIModel.xml) and add ADF bindings definitions to the file directly within the Structure window. You can then write expressions in a web page's source code to work with those bindings or program against them in your JClient form or panel source code.

To create the ADF UI Model file from the Structure window:

  1. Create your web page or JClient panel and open the file in the Visual Editor.

  2. Choose View | Structure to display the Structure window for the open file.

  3. Click UI Model tab icon (UI Model) in the Structure window toolbar to display the current binding definitions.

  4. If no binding container definition exists for the open document, right-click the node in the Structure window and choose Create UI Model.

    JDeveloper creates the <documentName> UIModel node in the Structure window and adds the <documentName>UIModel.xml binding definition file to the project package in the Application Sources folder.

To rename the untitled ADF UI Model file:

  1. Select the DataBindings.cpx file in the Application Sources folder.

  2. Choose View | Property Inspector to view the UI model id.

  3. Select the untitled node in theUI Model tab icon (UI Model) folder of the Structure window.

  4. Edit the Id field in the Property Inspector and press Enter.

To create the ADF bindings from the Structure window:

  1. To create an iterator binding that you can use to manage the currency of a collection that your client document will iterate over, right-click the new binding definition and choose Creating Binding | Data | Iterator.

    All value and action bindings that you create must be able to reference an existing iterator binding definition in your document's UI model file.

  2. In the iterator binding editor, define the binding for a specific data collection that you select.

  3. To create a value or action binding that you can use to operate on the collection whose iterator you just defined, right-click the binding definition node in the Structure window and choose one of these three choices:

  4. In each case, use the open binding editor to complete the binding definition. Click the editor Help button for additional help.

If you have created a JSP page, you can now write JSTL code and binding expressions to work with the bindings in your web page.

If you have created a UIX page, you can now write binding expressions to work with the bindings in your UIX XML component's model property.


About the Oracle ADF Bindings
Accessing ADF Bindings Through Expressions in JSP Pages
Accessing ADF Bindings Through Expressions in UIX XML Pages
Setting Properties of ADF Bindings in Expressions
Editing Iterator Binding References in the ADF Clients
Removing Unused Bindings from the Binding Definition File

 

Copyright © 1997, 2004, Oracle. All rights reserved.