How to create ADF Application – example

In this section, we walk through how to create ADF Application, deploy it and run it from Integrated WebLogic Server . The following is the series of steps that we are going to cover

 

  1. Create an ADF Fusion Web Application 
  2. Create a JSF page in View Controller 
  3. Start the WebLogic server 
  4. Deploy and run the ADF Application 

 

Pre-Requisite

The ADF web application can be deployed on servlet containers like Tomcat (requires ADF Essential) or a J2EE container like WebLogic server. WebLogic has inbuilt support for ADF libraries, so we don’t need to add any libraries to it. Oracle provides an IDE called JDeveloper to develop ADF application easily. The following link provides instruction about installing BPM, but it is bundled with the WebLogic Server and JDeveloper, so we have all things in one place to develop and deploy the application. If you don’t have the JDeveloper installed then following the instruction in the link before proceeding further 

 

JDeveloper 12.1.3

 

1. Create ADF Application 

Assume you have JDeveloper installed:  Here we are going to create an ADF Fusion Web Application 

 

  1. Open JDeveoper >> Click File >> New >> Application >>Select ADF Fusion Web Application

 

050816_2104_CreatingFir1 How to create ADF Application - example

 

2. Input the parameters as shown below in the image

 

Application Name: Name of your ADF application

Directory: The place where the application file resides

Application Package Prefix: Package name for the projects

 

050816_2104_CreatingFir2 How to create ADF Application - example

 

3. Name your project for Model and click ‘Next’. The model project contains all the business models for the application like database table queries, any web service or any other business logic.

Project Name: Project name for Model

Directory: Where the project resides

 

 

050816_2104_CreatingFir3 How to create ADF Application - example

 

 

4. Input package name of the Model project where the Java source will reside. Click Next

Default Package: It is same as Java package name, Note the prefix we added earlier appear here

Java Source Path: All .java files reside in the location

Output Directory: All .class file reside in the location

 

 

050816_2104_CreatingFir4 How to create ADF Application - example

 

5. Name the project for ViewController and Click Next. As the name implies, it has both the View files + controller file resides. The view files are for rendering pages in a browser like JSF, JSP, Javascript, CSS, Page templates, and Controller files are for the route the incoming HTTP request to the business model like adfc-config.xml, web.xml, and others.

Project Name: Project name for the View Controller

Directory: Directory where the view files + controller files reside

 

 

050816_2104_CreatingFir5 How to create ADF Application - example

 

 

6. Input the package name for View Controller. Click Next

Default Package: Similar to Java package name

Java Source Path: All .java file will reside

Output Directory: All .class files reside

 

 

050816_2104_CreatingFir6 How to create ADF Application - example

 

 

7. Choose the build tool for the Application and Click Finish.

Use JDevelopers default build tools: JDeveloper builds the application

Use Maven: Maven build for application

Use Ant: Ant Build for application

 

 

050816_2104_CreatingFir7 How to create ADF Application - example

 

8. The application and projects (Model & View) get created successfully on the application explorer

 

 

050816_2104_CreatingFir8 How to create ADF Application - example

 

 

2. Create a JSF page in ViewController

Here we are going to create a JSF page : 

 

  1. Right click on the ViewController >> Click New >> Click Page >> Input File name (index.jsf) >> Click Ok

 

050816_2104_CreatingFir9 How to create ADF Application - example

 

 

2. Double click on the index.jsf >> Expand the Text and Selection in the component >> Drag Output Text to the index.jsf as shown below

 

 

050816_2104_CreatingFir10 How to create ADF Application - example

 

3. Right click on the outputLabel  in the index.jsf and click Go to properties

 

 

050816_2104_CreatingFir11 How to create ADF Application - example

 

4.  The Property panel appears on the right-hand side, Change the value to Hello World! and Click Save

 

 

050816_2104_CreatingFir12 How to create ADF Application - example

 

3. Start the Integration WebLogic Server

Here we are configuring the WebLogic server so that we can deploy the ADF application into the server 

 

  1. On the JDeveloper Tools bar, Click Windows >> Application servers

 

050816_2104_CreatingFir13 How to create ADF Application - example

 

 

2. Expand the Application Servers >> Right click on the Integrated WebLogic Server >> Click Start

 

Input WebLogic domain password and click Ok. The WebLogic server will start immediately and it will take 5 to start running depends on the system performance

Note: If you get an error while starting the WebLogic server, then Click here for the resolution.

 

 

050816_2104_CreatingFir14 How to create ADF Application - example

 

3. Once the server started successfully, It will display the running and accept requests as shown below

 

 

050816_2104_CreatingFir15 How to create ADF Application - example

 

 

4. Deploy the Application to the WebLogic server

 

Here we deploy the developed ADF application and test it from the browser 

 

4.1. Click the Application tab >>Expand the View Controller >> Right click on the index.jsf file >> Click Run

 

050816_2104_CreatingFir16 How to create ADF Application - example

 

 

 

4.2   The application gets deployed to the integration WebLogic server and page get loaded on the browser

 

 

050816_2104_CreatingFir17 How to create ADF Application - example

govindan How to create ADF Application - example
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply šŸ™‚
govindan How to create ADF Application - example
Connect me
By | 2017-06-10T12:48:00+00:00 May 8th, 2016|Categories: ADF|Tags: , , , |0 Comments
Like us on Facebook.
Connect!