0% found this document useful (0 votes)
132 views6 pages

Hello World in ADF: 1. Create A New Application New Applications Fusion Web Application (ADF)

1. Create a new ADF Fusion Web Application named HelloWorld with package prefix dilip.oracle.adf.hello. 2. Add an ADF Business Component and ADF Faces to the application. 3. Create a JSF page called HelloWorld.jspx using the Blank Page layout and add an input text, button, and output text component to a decorative box for user input and output.

Uploaded by

Sarfaraz Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
132 views6 pages

Hello World in ADF: 1. Create A New Application New Applications Fusion Web Application (ADF)

1. Create a new ADF Fusion Web Application named HelloWorld with package prefix dilip.oracle.adf.hello. 2. Add an ADF Business Component and ADF Faces to the application. 3. Create a JSF page called HelloWorld.jspx using the Blank Page layout and add an input text, button, and output text component to a decorative box for user input and output.

Uploaded by

Sarfaraz Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Hello World In ADF

1. Create a New Application


New > Applications > Fusion Web Application (ADF).

2. Application Name: HelloWorld


Application Package Prefix:dilip.oracle.adf.hello

3.Select ADF Business Component.

4.Select ADF faces.

5.Select jsf/facelets-->Page from webTier

6.File Name HelloWorld.jspx


Check Create XML Document (*.jspx)
Select Blank Page in Initial Page Layout and Content Section

7. Drag Decorative Box from Layout option available in Component Palate

8.Drag item of type Input Text, Button on the center facet of decorativeBox from Common
Components Section.
Set Label Property :Enter Here

9.Drag item of type Output Text, Button on the Top facet of decorativeBox from Common
Components Section.
Delete OutpuText1 in the value field property from Common Components.
10.Drag Command Button on Center Face.
Set Text Property to :Go.
11. Select TOP af:decorativeBox then go to Property Pallete and Double Click Panel Group
Layout in Layout Section
Halign -- center

12.Select Center af:decorativeBox then go to Property Pallete and Double Click Panel Group
Layout in Layout Section
Halign -- center

13. Set Bind Action Property for commandButton.


Double Click on commandButton that will open set Bind Action Property window as shown below.

Click Ok and then Write Following Code in cb1_action() which you have just created(in
HelloWorld.java)

RichInputText inputText = getIt1();


String name = "Hello "+(String)inputText.getValue()+ "!";
System.out.println("This Is Entered "+name);
ot1.setValue(name);

14. See HelloWorld Result Page:

You might also like