ADF Modality :
How to use ADF ViewController & ADF Module projects
in another ADF application,
ADF Framework is supporting the modality by using your application projects as a recourse could be
use in any other ADF Application or Oracle(SOA - BPM - ADF Mobile),
that mean that you can builds your enterprise project from
many modules each one is a separate application
with one or more shared project and then gather them in one application.
1.
we will start by build a new ADF application .
2. build your business
layer by add a BC.
3. Select your tables in
this cause we will use the (Employee , Department).
4. Configure your
AppMpdule to have one tree the parent
will be the Department .
5. Add a new Task flow
6. Name your Task flow
7. Insert a View and Name
it .
8. Double click on the view to create a jsff page
.
9. Add the department as
a ADF Navigation List and the Employee as a table in your jsff page .
10. It will look like
this but do not forget to add the id of
the Department list component id to the table partialTriggers.
11. go to the
ViewController project and open the project properties and in the Deployment
profile add a new profile of type (ADF Library jar file ) and name it .
12. In the profile
properties go to connection and chose connection name only
13. After finish you will have two profiles chose ok.
14. go to the DataBindings.cpx
file and copy from the file source the xml tags for the pages content (<pageMap>) ,(<pageDefinitionUsages>)
and the (<dataControlUsages>) if there is
but them in a note or in text file to use them.
15. Delete the DataBindings.cpx file.
16. Delete the (<DataBindingRegistry
path="view/DataBindings.cpx"/>) tag from the adfm.xml
17. Deploy the Model
project and save the deployment jar file path.
18. Deploy the
ViewController project and save the deployment jar file path
19. Create A new ADF
Application and name it .
20. Go to the
ViewController Project Properties and select the Libraries and Class path then
chose Add jar/Directory to add the deployed jar files from the TestApp1
application you have two jar files one for the Model project and anther one for
the ViewController Project add them one by one or together .
21. After add the jar
files chose OK .
22. Now create a new jspx
page to your application and you can see that the Data control has the same
application module from the TestApp1 application .
23. After add the jspx
page open the component palette and from the category list you will find a new
category with the same name of your TestApp1 ViewController project deployment
profile name select it you will find the same task flow that you had create.
24. Drag and drop the
Regions task flow (EmpDept) to your page as a Region.
25. Go to the
DataBindings.cpx file and past the TestApp1 viewController DataBindings.cpx
tags witch you had save in point no(15) .
26. Now run your page you
will find the Region Working.