Specifying a Bean Definition for Accessors that Return a Collection

If your business service has an attribute or method that has a Collection as it's type, you must specify the class type in the data control so that the required metadata is generated for the design time (Data Control Palette) and runtime. You specify this information in the metadata (XML) file for the bean via the Property Inspector.

To specify the class type for a Collection type:

  1. In the Navigator, select the bean's metadata file ( <beanclassname>.xml).
  2. In the Structure window, select the field or method that contains the Collection type.
  3. Open the Property Inspector by clicking the V iew menu and choosing Property Inspector .
  4. Select the Bean Class field and click the ellipses (...) in the empty field to the right.
    The Bean Class dialog opens.
  5. In the Bean Class dialog, click Browse.
    The Class Browser opens.
  6. In the Class Browser, locate the appropriate bean class and then click OK.

About Oracle ADF Data Controls
Creating Oracle ADF Data Controls for EJB Components

 

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