Adding a Nested Application Module at Runtime

You can add a nested instance of any predefined application module to your data model at runtime by calling createApplicationModule() on the containing application module instance.

To add a nested application module at runtime:

  1. Create a String containing the package-qualified name of the definition of the application module to be nested. For example, if the application module definition is called SubTaskModule and is in the package orderentry.datamodel, you would use the following code:

    String amDefName = "orderentry.datamodel.SubTaskModule";

  2. Pass this string to createApplicationModule():
    ApplicationModule nestedAM =
      containingAM.createRootApplicationModule(amDefName);                

Changing the Data Model at Runtime
About Oracle ADF Application Modules
Creating an Application Module Definition
Accessing a Root-Level Application Module
Finding a Nested Application Module Instance

 

 

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