Presentation is loading. Please wait.

Presentation is loading. Please wait.

2 Copyright © 2004, Oracle. All rights reserved. ADF Development Process.

Similar presentations


Presentation on theme: "2 Copyright © 2004, Oracle. All rights reserved. ADF Development Process."— Presentation transcript:

1 2 Copyright © 2004, Oracle. All rights reserved. ADF Development Process

2 2-2 Copyright © 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Identify the typical process cycle for developing an ADF application List the main design-time features used to build ADF applications Use the course application to query products and to perform a transaction

3 2-3 Copyright © 2004, Oracle. All rights reserved. Project Technology Scopes ADF is a design-time and run-time framework for J2EE applications. JDeveloper provides design-time tools to support J2EE development. There are numerous technology stacks available for J2EE application development. The choice is yours.

4 2-4 Copyright © 2004, Oracle. All rights reserved. ADF Technology Stack Web Services EJB Session Beans JavaBeans/ Others JSPADF UIX Struts Swing/ ADF JClient JSF ADF Business Components ADF Model View Controller Model Business Services

5 2-5 Copyright © 2004, Oracle. All rights reserved. A Sample Application Is a two-page JSP or Struts application Is based on the Order Entry schema delivered with Oracle Database 10g

6 2-6 Copyright © 2004, Oracle. All rights reserved. Building an Application 1.Create an application workspace. 2.Select the technology scope. 3.Design the business services for the Model. 4.Design the application page flow for the Controller. 5.Create pages for the View.

7 2-7 Copyright © 2004, Oracle. All rights reserved. Application Workspaces An application workspace is a way of viewing the components of your application. JDeveloper provides several ways to view your application: –Application-based view –File system view –Code-organized view These views enable you to organize your project the way that works best for you.

8 2-8 Copyright © 2004, Oracle. All rights reserved. Application Workspace Templates JDeveloper provides application templates based on technology choices. You can create your own template, or you can choose the technology template for your application: –Web Application (default)—ADF UIX, JSP, Struts, and ADF Business Components –Web Application (JSP, Struts, and EJB) –Java Application (default)—ADF JClient and ADF Business Components –Java Application—Java, Swing/JFC, and JavaBeans –Custom Application—All JDeveloper technologies

9 2-9 Copyright © 2004, Oracle. All rights reserved. Creating an Application Workspace 1.Click New Application Workspace. 2.Enter a name. 3.Select the application template.

10 2-10 Copyright © 2004, Oracle. All rights reserved. New Application Workspace The application contains: A project for the model (business services) A project for the View and the Controller

11 2-11 Copyright © 2004, Oracle. All rights reserved. Design the Business Services for the Model: ADF Business Components Create ADF Business Components (Entity Objects) from existing database tables. Select the tables that you want to represent in the Model—these are the persistence components.

12 2-12 Copyright © 2004, Oracle. All rights reserved. Design the Business Services for the Model: ADF Business Components Business Components also contain View components (View objects). View objects expose data to client applications. Select all the objects that you want to expose to the client. The wizard creates the objects that you need.

13 2-13 Copyright © 2004, Oracle. All rights reserved. Design the Application Page Flow JDeveloper uses Apache Struts as a Controller. Apache Struts is an XML-driven page flow controller. JDeveloper provides a modeler to create and manage Struts controller definitions. Selecting “Web Application – Default” as the technology scope automatically generates a default struts-config.xml file. Tabs are provided in the editor to switch between the visual modeler and the XML file.

14 2-14 Copyright © 2004, Oracle. All rights reserved. Create the Page Flow To create a page flow, add a DataPage for each JSP page in your application. success /customers/orders

15 2-15 Copyright © 2004, Oracle. All rights reserved. Create JSP Pages Double-click the DataPage to create a view component. Use a.jsp file name extension to create a JSP page. Use a.uix file name extension to create a UIX page. This opens the JSP or UIX Visual Editor.

16 2-16 Copyright © 2004, Oracle. All rights reserved. Using the Visual Editors The Data Control Palette shows the data model that you have defined. Select the data elements that you want to display on the page. Use “Drag and Drop As:” to select how you want to display the data. Drag the element to the page.

17 2-17 Copyright © 2004, Oracle. All rights reserved. Databinding: Example Display Customer as an input form:

18 2-18 Copyright © 2004, Oracle. All rights reserved. Adding HTML to Enhance the User Interface Add HTML to enhance the user interface.

19 2-19 Copyright © 2004, Oracle. All rights reserved. Results Right-click the Customers DataPage, and select run.

20 2-20 Copyright © 2004, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Build a simple default application by using JDeveloper Describe and use an application workspace Create default ADF Business Components Create a simple page flow diagram Create and edit JSP Pages

21 2-21 Copyright © 2004, Oracle. All rights reserved. Practice 2-1: Overview This practice covers the following topics: Creating a JDBC connection Opening an existing application Testing the functionalities of the sample application Creating a new application workspace Creating an application template

22 2-22 Copyright © 2004, Oracle. All rights reserved. Practice 2-1: Overview

23 2-23 Copyright © 2004, Oracle. All rights reserved. Practice 2-1: Overview

24 2-24 Copyright © 2004, Oracle. All rights reserved. Practice 2-1: Overview


Download ppt "2 Copyright © 2004, Oracle. All rights reserved. ADF Development Process."

Similar presentations


Ads by Google