Oracle Fusion Middleware 11g: Build Applications with ADF I Activity Guide D539

Oracle Fusion Middleware 11g: Build Applications with ADF I Activity Guide D53979GC20 Edition 2.0 July 2010 D68162 Surendra Darla (surdarla@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Disclaimer This document contains proprietary information and is protected by copyright and other intellectual property laws. You may copy and print this document solely for your own use in an Oracle training course. The document may not be modified or altered in any way. Except where your use constitutes "fair use" under copyright law, you may not use, share, download, upload, copy, print, display, perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part without the express authorization of Oracle. The information contained in this document is subject to change without notice. If you find any problems in the document, please report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not warranted to be error-free. Restricted Rights Notice If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United States Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS The U.S. Government’s rights to use, modify, reproduce, release, perform, display, or disclose these training materials are restricted by the terms of the applicable Oracle license agreement and/or the applicable U.S. Government contract. Trademark Notice Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Authors Kate Heap, Patrice Daux Technical Contributors and Reviewers Joe Greenwald, Glenn Maslen This book was published using: Oracle Tutor Surendra Darla (surdarla@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Oracle Fusion Middleware 11g: Build Applications with ADF I Table of Contents i Table of Contents Practices for Lesson 1 ........................................................................................................ .............................1-1 Practices for Lesson 1: Introduction to Oracle Fusion and Oracle ADF .........................................................1-3 Practices for Lesson 2 ........................................................................................................ .............................2-1 Practices for Lesson 2: Getting Started with JDeveloper – Discovering the Shopping Cart Application ........2-3 Practice 2-1: Setting IDE Preferences ............................................................................................................2-4 Practice 2-2: Creating a JDeveloper Application and Project .........................................................................2-6 Practice 2-3: Initializing the Project and Creating a Database Connection ....................................................2-8 Practice 2-4: Examining the Course Application ............................................................................................2-10 Practices for Lesson 3 ........................................................................................................ .............................3-1 Practices for Lesson 3: Building a Data Model with ADF Business Components ..........................................3-3 Practice 3-1: Creating Default Business Components ...................................................................................3-4 Practice 3-2: Testing the Business Model ......................................................................................................3-8 Practices for Lesson 4 ........................................................................................................ .............................4-1 Practices for Lesson 4: Querying and Persisting Data ...................................................................................4-3 Practice 4-1: Creating Read-Only View Objects.............................................................................................4-4 Practice 4-2: Creating Multiple Read-Only View Objects at Once ..................................................................4-7 Practice 4-3: Creating Entity Objects Based on Database Views...................................................................4-9 Practice 4-4: Creating Multiple Entity Objects at Once ...................................................................................4-11 Practice 4-5: Creating Associations ...............................................................................................................4-12 Practice 4-6: Creating Updatable View Objects .............................................................................................4-14 Practice 4-7: Refactoring Associations and Links ..........................................................................................4-17 Practices for Lesson 5 ........................................................................................................ .............................5-1 Practices for Lesson 5: Exposing Data to Clients ...........................................................................................5-3 Practice 5-1: Creating an Application Module to Display Categories .............................................................5-4 Practice 5-2: Creating an Application Module to Display the Shopping Cart ..................................................5-5 Practices for Lesson 6 ........................................................................................................ .............................6-1 Practices for Lesson 6: Declaratively Customizing Data Services .................................................................6-3 Practice 6-1: Defining Control Hints ...............................................................................................................6-4 Practice 6-2: Declaratively Populating a Primary Key with a Database Sequence.........................................6-7 Practice 6-3: Designating History Columns ....................................................................................................6-9 Practice 6-4: Creating and Using View Criteria ..............................................................................................6-12 Practice 6-5: Creating Join View Objects .......................................................................................................6-15 Practice 6-6: Creating LOVs ..........................................................................................................................6-18 Practices for Lesson 7 ........................................................................................................ .............................7-1 Practices for Lesson 7: Programmatically Customizing Data Services ..........................................................7-3 Practice 7-1: Adding Code to Entity Objects ..................................................................................................7-4 Practice 7-2: Programmatically Assigning a Database Sequence..................................................................7-7 Practice 7-3: Populating History Columns When There Is No Logged-in User ..............................................7-9 Practice 7-4: Creating and Running a Test Client ..........................................................................................7-11 Practice 7-5: Creating an Application Module Base Class .............................................................................7-14 Practice 7-6: Editing an Application Module to Extend the New Base Class ..................................................7-17 Practice 7-7: Adding and Exposing Service Methods .....................................................................................7-18 Practice 7-8: Restrict the Shopping Cart Query .............................................................................................7-21 Surendra Darla (surdarla@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Oracle Fusion Middleware 11g: Build Applications with ADF I Table of Contents ii Practices for Lesson 8 ........................................................................................................ .............................8-1 Practices for Lesson 8: Validating User Input ................................................................................................8-3 Practice 8-1: Adding Declarative Validation: List Validator .............................................................................8-4 Practice 8 -2: Adding Declarative Validation: Unique Key Validator ...............................................................8-7 Practice 8-3: Adding Programmatic Validation: Method Validator ..................................................................8-9 Practice 8-4: Creating and Using a Domain for Validation .............................................................................8-12 Practice 8-5: Testing the Validation ................................................................................................................8-14 Practices for Lesson 9 ........................................................................................................ .............................9-1 Practices for Lesson 9: Troubleshooting ADF BC Applications ......................................................................9-3 Practice 9-1: Discovering Application Problems .............................................................................................9-4 Practice 9-2: Setting Breakpoints in the Debugger .........................................................................................9-5 Practice 9-3: Running the Application Module in Debug Mode ......................................................................9-7 Practices for Lesson 10 ....................................................................................................... ............................10-1 Practices for Lesson 10: Understanding UI Technologies ..............................................................................10-3 Practices for Lesson 11 ....................................................................................................... ............................11-1 Practices for Lesson 11: Binding UI Components to Data .............................................................................11-3 Practice 11-1: Creating Databound Pages .....................................................................................................11-4 Practice 11-2: Examining the Page's Data Bindings ......................................................................................11-8 Practice 11-3: Adding an Additional Detail Table ...........................................................................................11-11 Practice 11-4: Renaming a Page ...................................................................................................................11-13 Practices for Lesson 12 ....................................................................................................... ............................12-1 Practices for Lesson 12: Planning the User Interface ....................................................................................12-3 Practice 12-1: Creating an Unbounded Task Flow .........................................................................................12-4 Practice 12-2: Creating Bounded Task Flows ................................................................................................12-10 Practice 12-3: Extracting Part of a Task Flow ................................................................................................12-16 Practices for Lesson 13 ....................................................................................................... ............................13-1 Practices for Lesson 13: Adding Functionality to Pages ................................................................................13-3 Practice 13-1: Creating a Table with Row Selection ......................................................................................13-4 Practice 13-2: Creating a Search Page ..........................................................................................................13-10 Practice 13-3: Creating a Read-Only Form ....................................................................................................13-16 Practice 13-4: Creating a Sortable Table .......................................................................................................13-18 Practice 13-5: Creating a Category Tree ........................................................................................................13-20 Practice 13-6: Creating LOVs ........................................................................................................................13-24 Practice 13-7: Setting Up the UI Project for Internationalization ....................................................................13-28 Practices for Lesson 14 ....................................................................................................... ............................14-1 Practices for Lesson 14: Implementing Navigation on Pages ........................................................................14-3 Practice 14-1: Creating Buttons for Navigation ..............................................................................................14-4 Practice 14-2: Creating Links for Navigation ..................................................................................................14-9 Practice 14-3: Using Breadcrumbs .................................................................................................................14-18 Practice 14-4: Defining a Sequence of Steps .................................................................................................14-19 Practice 14-5: Simplifying and Enhancing a Task Flow ..................................................................................14-26 Practices for Lesson 15 ....................................................................................................... ............................15-1 Practices for Lesson 15: Achieving the Required Layout ...............................................................................15-3 Practice 15-1: Stretching Tables and Columns ..............................................................................................15-4 Practice 15-2: Adjusting JDeveloper's Default Layout Components ..............................................................15-6 Practice 15-3: Adding Layout Components to Existing Pages .......................................................................15-8 Surendra Darla (surdarla@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Oracle Fusion Middleware 11g: Build Applications with ADF I Table of Contents iii Practice 15-4: Creating New Pages with Required Layout .............................................................................15-12 Practice 15-5: Setting Conditional Display .....................................................................................................15-20 Practice 15-6: Implement PPR to Coordinate Products Display with Selected Subcategory .........................15-25 Practices for Lesson 16 ....................................................................................................... ............................16-1 Practices for Lesson 16: Ensuring Reusability ...............................................................................................16-3 Practice 16-1: Converting Bounded Task Flows to Use Page Fragments ......................................................16-4 Practice 16-2: Creating a Page Template and Applying It to Existing Pages .................................................16-7 Practice 16-3: Creating a Page Template and Applying It to a New Page .....................................................16-13 Practice 16-4: Using Bounded Task Flows as a Region on a Page ...............................................................16-20 Practices for Lesson 17 ....................................................................................................... ............................17-1 Practices for Lesson 17: Passing Values Between UI Elements ....................................................................17-3 Practice 17-1: Conditional Rendering Based on Parameters .........................................................................17-4 Practice 17-2: Using Parameters for Dynamic Breadcrumbs .........................................................................17-11 Practice 17-3: Implementing the Add to Cart Functionality ............................................................................17-13 Practice 17-4: Implementing Create Supplier Functionality (Optional) ...........................................................17-17 Practices for Lesson 18 ....................................................................................................... ............................18-1 Practices for Lesson 18: Responding to Application Events ..........................................................................18-3 Practice 18-1: Defining Task Flow Parameters ..............................................................................................18-4 Practice 18-2: Creating a Helper Method to Evaluate EL ...............................................................................18-5 Practice 18-3: Creating the Producer (Payload) Method ................................................................................18-9 Practice 18-4: Initiating the Contextual Event ................................................................................................18-12 Practice 18-5: Creating the Consumer (Handler) Method ..............................................................................18-14 Practice 18-6: Mapping the Contextual Event ................................................................................................18-16 Practice 18-7: Passing Values Through Region Parameters .........................................................................18-19 Practice 18-8: Modifying the JSF Life Cycle (Optional Exercise) ...................................................................18-21 Practices for Lesson 19 ....................................................................................................... ............................19-1 Practices for Lesson 19: Implementing Transactional Capabilities ................................................................19-3 Practice 19-1: Saving the Shopping Cart .......................................................................................................19-4 Practice 19-2: Updating, Deleting, and Displaying Details of Shopping Cart Items ........................................19-5 Practice 19-3: Controlling Transactions in the CheckoutFlow ........................................................................19-12 Practice 19-4: Adding CRUD Functionality for Suppliers (Optional Exercise) ................................................19-13 Practices for Lesson 20 ....................................................................................................... ............................20-1 Practices for Lesson 20: Implementing Security in ADF BC Applications ......................................................20-3 Practice 20-1: Configuring the Application to Use ADF Security ....................................................................20-4 Practice 20-2: Defining Users in the Identity Store .........................................................................................20-7 Practice 20-3: Defining Enterprise Roles .......................................................................................................20-8 Practice 20-4: Implementing Security on Task Flows and Pages...................................................................20-11 Practice 20-5: Testing Application Authentication and Authorization .............................................................20-13 Practice 20-6: Implementing Entity Object Security .......................................................................................20-15 Practice 20-7: Testing Entity Object Security .................................................................................................20-17 Practice 20-8: Accessing Security Context Programmatically ........................................................................20-18 Practice 20-9: Conditionally Displaying a Component Based on User Role ...................................................20-20 Practice 20-10: Modifying the uploads/s1/ guide-adf.pdf

  • 39
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Attribution requise
Partager
  • Détails
  • Publié le Aoû 28, 2021
  • Catégorie Administration
  • Langue French
  • Taille du fichier 10.1422MB