D49185GC10 Toc
D49185GC10 Toc
D49185GC10 Toc
Applications: Building OA
Framework Applications
Student Guide Volume 1
D49185GC10
Edition 1.0
December 2007
D53744
Authors
Bill Sawyer, Lauren Cohn, Barbara Waddoups
Technical Contributors and Reviewers
John Zerbel, Jon Styles, Sara Woodhull, Suvarna Gadipatti, Liza Lyons, Vincent Thevenet
This book was published using:
oracletutor
Table of Contents
Introduction to OA Framework .....................................................................................................................1-1
R12 Building OA Framework Applications ..................................................................................................1-3
Course Objectives..........................................................................................................................................1-4
Lesson Objectives..........................................................................................................................................1-5
Agenda Day 1 .............................................................................................................................................1-6
Agenda Day 2 .............................................................................................................................................1-7
Agenda Day 3 .............................................................................................................................................1-8
Agenda Day 4 .............................................................................................................................................1-9
Agenda Day 5 .............................................................................................................................................1-10
Important Terminology..................................................................................................................................1-11
Personalization vs. Extension ........................................................................................................................1-13
Architectural Components of OA Framework...............................................................................................1-14
Why Java? .....................................................................................................................................................1-16
Foundations of Java Programming ................................................................................................................1-18
The Java Tech Stack for OA Framework ......................................................................................................1-20
Oracle JDeveloper 10g ..................................................................................................................................1-22
Oracle JDeveloper 10g Components .............................................................................................................1-24
What's in BC4J? ............................................................................................................................................1-26
What's in UIX? ..............................................................................................................................................1-27
What's in AOL/J? ..........................................................................................................................................1-28
What's in OA Framework? ............................................................................................................................1-29
What's in the Metadata Services? ..................................................................................................................1-30
What is the MVC Design Pattern?.................................................................................................................1-31
Why Do We Use MVC? ................................................................................................................................1-32
The OA Framework Architecture ..................................................................................................................1-33
Additional Resources.....................................................................................................................................1-34
Summary........................................................................................................................................................1-35
Concepts of the MVC Design Pattern ............................................................................................................2-1
R12 Building OA Framework Applications ..................................................................................................2-3
Lesson Objectives..........................................................................................................................................2-4
What is a JSP Page?.......................................................................................................................................2-5
Key JSP Application Components.................................................................................................................2-6
What Happens at Runtime? ...........................................................................................................................2-8
What Happens from the Start?.......................................................................................................................2-10
Behind the Scene ...........................................................................................................................................2-17
Logical Components of an OA Framework Page ..........................................................................................2-28
What is the MVC Design Pattern?.................................................................................................................2-29
Model: Business Components for Java..........................................................................................................2-30
Model: Application Modules.........................................................................................................................2-31
Model: Entity Objects....................................................................................................................................2-32
Model: View Objects.....................................................................................................................................2-33
View: OA Framework-Based Page................................................................................................................2-34
View: Java Objects in a Page.........................................................................................................................2-35
View: A Framework Example .......................................................................................................................2-36
View: Page Hierarchy....................................................................................................................................2-37
Controller: Controlling UI Behavior..............................................................................................................2-38
OA Framework MVC Summary ...................................................................................................................2-39
Summary........................................................................................................................................................2-40
Basics of the Model ..........................................................................................................................................3-1
R12 Building OA Framework Applications ..................................................................................................3-3
Lesson Objectives..........................................................................................................................................3-4
Copyright Oracle Corporation, 2007. All rights reserved.
Implementing a Create....................................................................................................................................10-1
R12 Building OA Framework Applications ..................................................................................................10-3
Lesson Objectives..........................................................................................................................................10-4
Implementing a Poplist..................................................................................................................................10-5
Extending a Shared Region ...........................................................................................................................10-6
Creating a New Row......................................................................................................................................10-7
Initializing a View Object..............................................................................................................................10-8
Creating and Initializing a VO Row ..............................................................................................................10-9
Getting the Data.............................................................................................................................................10-10
Saving a Row to the Database .......................................................................................................................10-11
Lab After Create Basics..............................................................................................................................10-12
Lab After Validations .................................................................................................................................10-13
Lab After Partial Page Rendering...............................................................................................................10-15
Summary........................................................................................................................................................10-17
Implementing a Delete.....................................................................................................................................11-1
R12 Building OA Framework Applications ..................................................................................................11-3
Lesson Objectives..........................................................................................................................................11-4
Error Handling Overview ..............................................................................................................................11-5
Exception Types ............................................................................................................................................11-6
Exception Classes ..........................................................................................................................................11-8
Message Types ..............................................................................................................................................11-9
Message Dictionary .......................................................................................................................................11-10
Implementing Message Dictionary................................................................................................................11-11
Instantiating Attribute-level Exceptions ........................................................................................................11-12
Instantiating Row-level Exceptions ...............................................................................................................11-13
Attribute Value - EO Example ......................................................................................................................11-14
Attribute Value - VO Example ......................................................................................................................11-15
Row Value - EO Example .............................................................................................................................11-16
Row Value - VO Example.............................................................................................................................11-17
Messaging Flows ...........................................................................................................................................11-18
Inline Messages .............................................................................................................................................11-19
Dialog Pages..................................................................................................................................................11-20
Switchers .......................................................................................................................................................11-22
Table Content Switcher Abilities and Limits.................................................................................................11-23
Implementing Table Content Switchers ........................................................................................................11-24
Query Page with Non-Deleteable Employee .................................................................................................11-25
Query Page with Deleteable Employee .........................................................................................................11-26
Warning Dialog .............................................................................................................................................11-27
Confirmation Message...................................................................................................................................11-28
Summary........................................................................................................................................................11-29
Implementing an Update.................................................................................................................................12-1
R12 Building OA Framework Applications ..................................................................................................12-3
Lesson Objectives..........................................................................................................................................12-4
Locator Elements...........................................................................................................................................12-5
Breadcrumbs..................................................................................................................................................12-6
Page Navigators.............................................................................................................................................12-7
Record Navigators .........................................................................................................................................12-8
Trains.............................................................................................................................................................12-9
Implementing Trains......................................................................................................................................12-10
Single-Page Update .......................................................................................................................................12-11
Update Confirmation .....................................................................................................................................12-13
Multi-Page Update.........................................................................................................................................12-14
Multi-Page Update Confirmation ..................................................................................................................12-17
Summary........................................................................................................................................................12-18
OA Framework Development Concepts and Standards ..............................................................................13-1
Copyright Oracle Corporation, 2007. All rights reserved.