Thursday, June 2, 2016

Oracle ADF First Sample Application

Hello world Example

Create a New Application Step By Step
Step 1:
Click on File à New à Generic Application“ à OK à then Give Application Name à Next
                                                OR

You can click on File à “New Application” in the Application Navigator Section as below screen.


Step 2 : Select Applications Category -> “Fusion Web Application(ADF)” from the Items list as      below:

Step 3: Now Give the application name and the remaining details then click on Next as :


Step 4 : Give  Model Project name and the directory & then click on Next button as below:


Step 5: Provide default package, src & class path for model project. You can accept the default values then click Next as below:

Step 6: Provide View Controller project name and the directory path. You can accept the default values then click Next.


Step 7: Provide default package, src & class path for View controller project. You can accept the default values then click Finish as below :


Now Once the application is created, Application Navigator will look like this as below:

Now You need to Create Page in which you will design and developed your business as below :

Step 8 : Right click on ViewController  à New à Click on JSF Page à OK





Step 9 : Just Provide File name as “HelloWorld.jspx” then click on ok.


Now Editor view will be Shown as below :


 Step 10 : Now to go Component Palette à Layout à  select and drag “Panel Group Layout” on to the editor as below:


Step 11 : Now Go to Component Palette à Common Component à Drag “Output Text” on to the Panel group layout.


See The Structure window will be like this : 


Editor window will be looks like as below : 

From Structure panel select af:outPutText. Go to Properties window. Change the value property to “Hello World


Now Save the page and right click on the page and select “Run” to run the page.


Note : If first time you run in J Developer then you need to create weblogic domain with new password, You will see the following dialog box for domain configurations as :


Enter password and confirm password You can leave Listener Address and select localhost or define any IP address and the port as defaults.

Finally the Hello world page in the browser will be as :



Completed First ADF Example.
By :  Dilip Kumar