Book Image

Oracle ADF 11gR2 Development Beginner's Guide

By : Vinod Thatheri Krishnan
Book Image

Oracle ADF 11gR2 Development Beginner's Guide

By: Vinod Thatheri Krishnan

Overview of this book

Oracle ADF is an end-to-end framework which makes application development simple by providing infrastructure services as well as visual and declarative development right away. "Oracle ADF 11gR2 Development Beginner's Guide" guides any user with programming skills to be able to quickly learn the options and ways to develop rich Internet applications using ADF 11gR2. Containing all the skills that a new user has to use to build an application in ADF 11gR2, this book is designed in such a way so that it enhances the practical feel of developing applications in ADF 11gR2. Starting with the installation and configuration of Oracle ADF 11g RD we will then work through topics such as working with the Model Layer and Model Data followed by displaying and binding the data. Later we will look at Navigations and Flows within applications as well as their layout, look, and feel. "Oracle ADF 11g R2 Development Beginner's Guide" will conclude with us looking at the security and deployment of the applications which have been created.
Table of Contents (19 chapters)
Oracle ADF 11gR2 Development Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Pop Quiz Answers
Index

Time for action – creating a catalog


  1. Click on the folder icon in the Resource palette.

  2. Select the New Catalog option from the drop-down menu.

  3. Provide the name catalog in the Name box.

  4. Click on OK to see the new catalog listed in the My Catalog section.

  5. To add a resource to the catalog, you will have to right-click on the resources that are listed in the IDE connections menu. You can add resources from a filesystem connection that is mapped to any of your preferred folders.

  6. Select the Add to Catalog option from the menu.

  7. Select the catalog that you have created from the option.

  8. Click on OK to add the resource to the catalog.

  9. Now the resource will be added to the catalog.

What just happened?

We have now created a catalog for our IDE for the frequent use of resources. Resources added to the catalog are available for the IDE, and we can make use of these resources in different applications and projects.

IDE Connections will have all the connections that are added for the particular IDE. We can use the connections from this window and add them to a particular project by dragging-and-dropping them onto the project displayed in the Database Navigator plugin.

The Component palette

The Component palette will display all the available components that can be added to the UI page. This palette is categorized with different components based on the technology available for the current project. Within each technology available for the project, components are further classified based on behavior. There is an option to search for the component using the search box available at the top of the palette.

Different components are available for different files. For example, the ADF Faces components are displayed if you have the index.jspx file as your current open file from a project that supports ADF technology.

Have a go hero – components available for IDE

Now it's time for you to explore different components available for different technologies. Use the EmpDirectoryApplication file for your analysis. Perform the following to check for the components available for the IDE:

  • What are the components listed in the palette for web.xml?

  • Open trinidad-config.xml and check if it's listing the same components as in web.xml.

Run Manager

Run Manager will display all the current running processes and give an option to terminate whenever needed. This is not shown by default and can be enabled from the View menu.

The Log window

The Log window will display log messages related to the projects. There are other tabs embedded within the Log window to categorize the logs that are generated, as follows:

  • IntegratedWeblogicServer: This displays the log information of the integrated WebLogic server. This Log window is helpful in identifying application errors during runtime. It will display the log information while starting and stopping the server.

  • Messages: This tab displays the compilation logs.

  • Extensions: This tab will display logs related to the installed IDE extensions.

  • Compiler: This tab will display the warnings and errors that occurred while the project was being compiled.

Code editor

You will use the code editor section to write the code. The Java code file can be opened in the editor by double-clicking on the Application Navigator window. There are different options available within the code editor that will be helpful to run the code efficiently.

Code editor views

  • Design: Files with extension such as .jsff or .jspx which represent a UI page will have a Design mode added to design the pages.

  • Source: The Source tab is added for all the files where a user can change the content using the code editor.

  • Bindings: This section will help the user interact with the data bindings bounded to the UI components. The page-definition file will hold the binding information, and it is shown in this view.

  • Preview: This will help to preview the page designed and imitate the components rendered at runtime.

  • History: This view is common for all files, and the local history of the file changes is tracked in this view.

Property Inspector

The Property Inspector pane will help to alter the property of the currently selected component or tag in the Design or Source mode of a page.

All the previously explained windows and panels are available in the View menu.

Have a go hero – code editor and Property Inspector

Now it's time for you to check the usage of the code editor and the Property Inspector pane as follows:

  • Open the adfc-config.xml file and check how many views are available. Check the Overview tab and see the options to configure the properties declaratively.

  • Open the Source tab and select any of the tags to see the changes in the Property Inspector window.

Pop quiz

Q1. Which role will enable all the features of the IDE?

  1. Database developer

  2. Java developer

  3. Studio developer

Q2. Which IDE component is used to drag the model data and drop it on the UI page?

  1. Application Navigator

  2. The Data Controls palette

  3. The Resource palette

Q3. IDE connections are created only for an application in JDeveloper.

  1. True

  2. False

Q4. _________ and _________ are the two folders displayed in the Application Resources panel of the IDE.

Q5. Which of the following features are supported in JDeveloper?

  1. Drag-and-drop

  2. Docking

  3. Floating

  4. Searching

  5. All of the above