Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Oracle ADF 11gR2 Development Beginner's Guide

You're reading from   Oracle ADF 11gR2 Development Beginner's Guide Oracle ADF is one of the easiest ways to develop rich internet applications. All you need is a little Java to get the most from this book as it takes you step-by-step from installation, to development, to implementation.

Arrow left icon
Product type Paperback
Published in Apr 2013
Publisher Packt
ISBN-13 9781849689007
Length 330 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Vinod Thatheri Krishnan Vinod Thatheri Krishnan
Author Profile Icon Vinod Thatheri Krishnan
Vinod Thatheri Krishnan
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Oracle ADF 11gR2 Development Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Pop Quiz Answers
1. Installing and Configuring JDeveloper IDE FREE CHAPTER 2. Getting Started with ADF 3. Understanding the Model Layer 4. Validating and Using the Model Data 5. Binding the Data 6. Displaying the Data 7. Working with Navigation Flows 8. Layout with Look and Feel 9. Implementing Security 10. Deploying the ADF Application 11. Advanced Features of ADF Index

Time for action – opening the sample application


  1. Download the sample application from http://www.packtpub.com (The EmpDirectoryApplication code downloadable with this book).

  2. Click on the Open Application option and locate the EmpDirectoryApplication.jws file.

  3. You will now see that the application is listed in the Application Navigator window and the projects are listed for EmpDirectoryApplication.

What just happened?

We have opened an already existing ADF application to get a feel of how the IDE components work together. Some of the components explained in the following section would need an open application.

Application Navigator

The application-related artifacts are managed in a window called Application Navigator. A user can create an application and open existing applications. We will see how to create and open an application in detail in the next chapter.

All open applications are available in the drop-down menu and the user can choose between different applications.

We can select the application, and once the application is selected, we can locate the project and navigate to the related project artifacts. The navigator will display a folder structure of the project that you are currently working on.

The Application menu will list out all the options available to configure an application. The options include creating a new project, opening a project, closing the application, securing the application, application properties, and so on, as shown in the following screenshot:

Have a go hero – exploring the Application menu

You are now going to explore the Application menu by clicking on each of the options available:

  • Try and find what the difference is between the New Project and New options

  • Try to find some application files using the Menu option provided

  • Identify what Filter Application means to you

  • Browse through the Application properties option and familiarize yourself with the options available

The Projects pane will display some options for configuring the projects that are available for the current application, as shown in the following screenshot:

The options on the previous ribbon bar are explained as follows:

  • Project properties: This icon will display the properties that can be configured for the current project.

  • Refresh: This will refresh the current project for any file changes.

  • Working sets: This will help you to filter the current project or files from other open projects. This will be really helpful if you have multiple projects for your application and would like to work on only one project at a time. Having less projects open will load the application faster instead of when all the projects for the application are open.

  • Navigator display options: This will let the user display the structure of the project efficiently.

Have a go hero – exploring the projects pane

Now it's your turn to figure out the options provided for the projects pane:

  • Open the Project Properties pane and check the available settings for the project. We will be using some of these properties in the coming chapters.

  • Add some files outside JDeveloper in the Project folder, and click on the Refresh button. Do you see the file in JDeveloper?

  • Where have you seen the Manage Working Set option available in the Working Sets menu before?

  • You are provided with Navigator Display options for the projects. Try out different options and look for changes.

Application Resources

The Application Resources pane will list out all the common resources available for the application. Connections and Descriptors are the two folders available in this panel that contain the resources.

  • Connections: This folder displays all the connections available for the application. It can be anything that gives a context of the connection to the server or to the repository available for the applications.

  • Descriptors: This will list all the configuration files and descriptors available for the application. Common descriptors are adf-config.xml, connections.xml, cwallet.sso, jps-config.xml, and Weblogic-application.xml.

Have a go hero – explore Application Resources

Now you will have to locate the application resource files outside the JDeveloper IDE and then note down the folder structure that you see. Do you see all the files listed under the folder listed in Application Resources? The missing files are subsequently created when you add a database connection or when you secure your application.

Data Controls palette

The Data Controls pane palette will expose the available Data controls options from the model layer to use in the UI layer. You can refresh the data controls or filter out the data controls using the options available.

The Data controls palette shown in the following screenshot will not be available in the EmpDirectoryApplication file. This will be created automatically when you have the corresponding component created in the model project. Right now don't worry about that.

Recently Opened Files

The Recently Opened Files pane will list all the files opened recently in the application. This pane should not be confused with the Reopen option in the File menu. If you have multiple applications in your workspace, this pane will display recent files specific to the application.

Structure window

The Structure window, as shown in the following screenshot, will display the structure of the files that the user currently has open. This window is mostly used to insert the components from data control to bind the values. You have an option within the structure window to search for tags.

Have a go hero – identify the structure of the file

  • Double-click on the web.xml file available in the ViewController project. Do you see any change in the Recently Opened Files window?

  • In the Structure window, what do you see?

  • Click on the Source tab of the web.xml file and check the changes in the Structure window.

  • Click on the tag displayed in the Structure window. What do you see in the Source view?

Database Navigator

Database Navigator, as shown in the following screenshot, will display the connection information available for all the applications in the IDE. The Database Navigator plugin is a fully functional plugin for a SQL developer. This plugin is not displayed by default, and you can open this from the Database submenu in View.

The Resource palette

The Resource palette window will allow the user to create IDE resources and assets. Click on the View menu to display this palette.

There are two types of resources that can be created from the Resource palette. They are Catalogs and Connections.

  • Catalogs: These are user-defined assets from different repositories used for easy access.

  • Connections: These are the contexts for the application or IDE added to different repositories or servers.

  • My Catalogs: This will list all the user-defined resources added as a catalog. For example, if you have a filesystem connection, the catalog can store the images or contents from the filesystem as a user-defined catalog.

You have been reading a chapter from
Oracle ADF 11gR2 Development Beginner's Guide
Published in: Apr 2013
Publisher: Packt
ISBN-13: 9781849689007
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime