About author  I am Java/oracle professional.Working on Java/J2EE technologies and i.e Java,J2ee,Oracle ADF,hibernate,J2ee,PL/sql,Apps for 4+ years.I am passionate about learning new technologies.I am sharing my knowledge. Give your views and suggestion on vinay@techartifact.com http://www.linkedin.com/in/vinaykumar2 Read more from this author


This tutorial will explain creating new application, new pages, and navigation cases. It will display
Explain you event generated on a command button .It will be redirected to new page(.jspx) and display a message. I hope it will clear the basic understanding navigation and business component.

1. Open Jdeveloper and right click on project and select new. Under Web tier tab select JSF.

11

2. A create JSF and JSP wizard will open and give name to your .jspx page press next. Here we can select JSF(.jspx) and JSP page.

2

3. Click next and add ADF libraries. And select finish.

3

4. A blank Test2.jspx will open.

4

5. In WEB-INF folder under web content open face-config.xml .Drag and drop 2 JSF page to face- config file .Give name test2 and test3.jspx.Then drag and drop the “JSF NAVIGATION CASE” and place it from test2.jspx to test3.jspx .Replace success to navigation in JSF NAVIGATION CASE. For generating the PopUp window we can write this as “-dialog:naviagtion”. Make user window property to true and test3,jspx will displayed as popup page.

5

6. Save your application and go to test2.jspx .Drag and drop one command button on page and rename to “Next page” from property palette under text property. In action property select
“navigation “ .It will redirect to test3.jspx .

6

7. In the face-config.xml file double click on test3.jspx. Create JSF JSP wizard will open. Click next and press finish.

8. Drag and drop one outputText from component palette on test3.jspx.Change the value property of outputText to “Hello World”.

7<img

9. Save your application and run the application.Test2.jspx will open.

8<img

10. Click on next page.Test3.jspx will open and “HELLO WORLD ” will displayed.

9

This is all about this hello world application. Later I will explain about more complex issues in ADF. Please review this and give your valuable comments.

7 Responses to Hello World Tutorial in ADF


  1. NetraNo Gravatar
    Nov 20, 2009

    My page is not gettign displayed ..It gives page can not be displayed


  2. lavanyaNo Gravatar
    Apr 14, 2010

    One slight correction. if one is using adf to make these pages, double click on the jspx pages one has made in the faceconfig.xml to create the blank jspx page as it default makes an jsf page. In case one wants to create a page seperately, slect jsf pages and not jsp page. Else one has to include tag in the tags in jspx page and insert faces/before the *.jspx page in url.


  3. Ravi KanthNo Gravatar
    Dec 21, 2010

    Nice Article. It worked for me.


    • BaludaNo Gravatar
      May 31, 2011

      I am getting this error:
      Error initializing server: IO Error: The device is not ready

      Can you please help?

      Regards
      baluda


  4. vinayNo Gravatar
    May 31, 2011

    Please explain where u getting this error.Which device is not ready.thn only i can help u


    • SunNo Gravatar
      Dec 10, 2011

      Hello, I get the same error, beacuse the path to EAR file is different. I saw this when I choise Tools->Embedded OC4J preferences -> Application -> bc4j.

      How can I set the correct path??

Trackbacks/Pingbacks

  1. PimpThisBlog.com

Leave a Reply