Developing RIA Web Applications with Oracle ADFPurposeThis tutorial shows you how to build a rich Internet application that interacts with a database. You'll be using Oracle JDeveloper 11g and the ADF framework to build the application, and in the process you'll work with Oracle ADF Business Components, Oracle ADF Faces Rich Client Components and Oracle ADF Task Flows. Approximately 2 hours The tutorial covers the following topics: Viewing Screenshots
Note: Alternatively, you can place the cursor over an individual icon in the following steps to load and view only the screenshot associated with that step. You can hide an individual screenshot by clicking it.
This tutorial takes you through a simple scenario of building a rich internet application that provides a user interface to access database tables. You'll be using Oracle JDeveloper 11g and Oracle ADF 11g to create a complete application including business services, user interface and page flows. The focus of this tutorial is to illustrate the visual and declarative approach that Oracle ADF provides for Java EE application development. While working through the tutorial notice how ADF saves you from writing low level and speeds up your development process. ScenarioThe application that you create in this tutorial displays information on department and employees. You will create several JSF pages that enable you to query and update the data in the database.
When you work in JDeveloper, you organize your work in projects within an application. JDeveloper provides several templates that you can use to create an Application and projects. The templates are preconfigured with a basic set of technologies that are needed for developing various types of applications, and you create your working environment by selecting the template that fits your needs. You can then configure it to add any other technologies you plan to use. In the first section you are going to create a new Application using the Fusion technology and build reusable business components that will access the database.
In this topic you refine your business services by adding validation rules, formatting and default values. To add validation rules, perform the following steps:
JavaServer Faces or JSF for short is a standard Java EE technology that simplifies Web development.
In this section we'll add a new Business Service to our application that will display a subset of the fields from the Employees table, along with the department name from the Departments table. We'll also add calculated fields.
Web applications usually have more than one page in them. In the next section you are going to add another page to your application and use the ADF Task Flow to define the navigation rules between the two pages. To add a page flow and navigate between pages, perform the following steps:
In the next section we'll enhance our pages with additional Ajax functionality leveraging the declarative development offered by the ADF Faces components.
First we'll add an automatic update of the yearlySalary field based on changes in the Salary field. Since we don't want to refresh the whole page, we'll use the partial page refresh capability offered by ADF Faces
Using Drop Down Menus and Operation ComponentsIn this section we'll add a drop down menu to a page and use a couple of ADF Faces operation components to add Javascript based operations to our page that will export table data into an Excel spreadsheet and to a printable page.
In the next two sections we'll create a reusable page fragment that will allow us to search for employees by their email. We'll then use this page fragment inside another JSF page.
Query Only Business Service Based on Parameters First we'll create a new ADF Business Components View Object to provide us with the right query based on a parameter.
Reusable Task Flows, Page Fragments and RegionsIn this section we'll create a reusable page fragment that will allow us to search for employees by their email. We'll then use this page fragment inside another JSF page. The same page fragment can be used in multiple other pages in our application.
Congratulations you have just finished a complete ADF application. You've used ADF Business Components to create both simple and complex business services that map to the database. You've used ADF Faces components to create a rich user interface with built-in Ajax capabilities. And you used the ADF Task Flows to create page flows and reusable page regions. Notice how little code you had to write while working with JDeveloper and ADF. This is only the first step in your road to mastering Oracle ADF, you can get much more information at http://oracle.com/technology/jdev In this tutorial, you've seen how to create ADF Rich Client JSF Pages and use some advanced features like:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Developing RIA Web Applications with Oracle ADF
最新推荐文章于 2021-08-07 04:13:34 发布
id="portalIFrame" title="" src="file:///I:/others/%E5%8E%9F%E7%94%B5%E8%84%91%E8%B5%84%E6%96%99/%E5%9F%B9%E8%AE%AD%E6%95%99%E6%9D%90/ADF/Hands-on%206%20-%20Developing%20RIA%20Web%20Applications%20with%20Oracle%20ADF/Hands-on%206%20-%20Developing%20RIA%20Web%20Applications%20with%20Oracle%20ADF/developriaapplication_long_files/pobtrans.gif" width="0" frameborder="0" height="0" style="font-family: Simsun;font-size:14px;">