1 / 21

ADF Development Process

ADF Development Process. 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

peterst
Télécharger la présentation

ADF Development Process

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ADF Development Process

  2. 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. 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. ADF Technology Stack JSP JSF ADF UIX Swing/ ADF JClient View Struts Controller ADF Model Model ADF BusinessComponents WebServices EJBSessionBeans JavaBeans/Others BusinessServices

  5. A Sample Application • Is a two-page JSP or Struts application • Is based on the Order Entry schema delivered with Oracle Database 10g

  6. 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. 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. 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. Creating an Application Workspace 1. Click New Application Workspace. 2. Enter a name. 3. Select the application template.

  10. New Application Workspace • The application contains: • A project for the model (business services) • A project for the View and the Controller

  11. 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. 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. 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. Create the Page Flow • To create a page flow, add a DataPage for each JSP page in your application. success /customers /orders

  15. 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. 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. Databinding: Example Display Customer as an input form:

  18. Adding HTML to Enhance the User Interface • Add HTML to enhance the user interface.

  19. Results • Right-click the Customers DataPage, and select run.

  20. 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. 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

More Related