Oracle ADF 11gR2 Development Beginner's Guide

Book description

Oracle ADF is one of the easiest ways to develop rich internet applications. All you need is a little Java to get the most from this book as it takes you step-by-step from installation, to development, to implementation.

  • Implement a web-based application using the powerful ADF development framework from Oracle
  • Experience the fun of building a simple web application with practical examples and step-by-step instructions
  • Understand the power of Oracle ADF 11gR2 and develop any complex application with confidence

In Detail

Oracle ADF is an end-to-end framework which makes application development simple by providing infrastructure services as well as visual and declarative development right away.

"Oracle ADF 11gR2 Development Beginner’s Guide" guides any user with programming skills to be able to quickly learn the options and ways to develop rich Internet applications using ADF 11gR2. Containing all the skills that a new user has to use to build an application in ADF 11gR2, this book is designed in such a way so that it enhances the practical feel of developing applications in ADF 11gR2.

Starting with the installation and configuration of Oracle ADF 11g RD we will then work through topics such as working with the Model Layer and Model Data followed by displaying and binding the data. Later we will look at Navigations and Flows within applications as well as their layout, look, and feel. "Oracle ADF 11g R2 Development Beginner's Guide" will conclude with us looking at the security and deployment of the applications which have been created.

Table of contents

  1. Oracle ADF 11gR2 Development Beginner's Guide
    1. Table of Contents
    2. Oracle ADF 11gR2 Development Beginner's Guide
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Installing and Configuring JDeveloper IDE
      1. System requirements for Windows
      2. Installing JDeveloper
      3. Time for action – downloading the installer
        1. What just happened?
        2. Have a go hero – researching the optional components for JDeveloper
      4. Studio edition
      5. Time for action – installing JDeveloper Studio Edition
        1. What just happened?
        2. Have a go hero – check the folder structure of JDeveloper
      6. Time for action – launching JDeveloper for the first time
        1. What just happened?
        2. Have a go hero – have fun with the welcome screen
      7. Knowing the start-up flags/parameters
      8. Time for action – setting the start-up options
        1. What just happened?
        2. Have a go hero – more options
      9. Setting up the user directory (System directory)
        1. Have a go hero – look for other files in the system folder
      10. Working with IDE configuration files
        1. Have a go hero – look for other configuration files
      11. Knowing the roles
        1. Have a go hero – explore the IDE
      12. Getting familiar with the IDE
        1. Setting the preferences
      13. Knowing the IDE components
      14. Time for action – opening the sample application
        1. What just happened?
        2. Application Navigator
        3. Have a go hero – exploring the Application menu
        4. Have a go hero – exploring the projects pane
        5. Application Resources
        6. Have a go hero – explore Application Resources
        7. Data Controls palette
        8. Recently Opened Files
        9. Structure window
        10. Have a go hero – identify the structure of the file
        11. Database Navigator
        12. The Resource palette
      15. Time for action – creating a catalog
        1. What just happened?
        2. The Component palette
        3. Have a go hero – components available for IDE
        4. Run Manager
        5. The Log window
        6. Code editor
        7. Code editor views
        8. Property Inspector
        9. Have a go hero – code editor and Property Inspector
        10. Pop quiz
      16. Summary
    9. 2. Getting Started with ADF
      1. Model-View-Controller
        1. How ADF implements MVC
        2. The ADF architecture
      2. Creating a simple application in ADF
        1. ADF development practice
        2. Sample application – employee directory application
      3. Time for action – creating the application workspace
        1. What just happened?
        2. Have a go hero – analyze the application directory
        3. Planning your application
        4. Connect to a database
      4. Time for action – setting up the database tables
        1. What just happened?
      5. Time for action – creating a database connection
        1. Have a go hero – run some queries
        2. Build business services
          1. Accessing the project properties
      6. Time for action – creating the business components
        1. What just happened?
        2. Have a go hero – open and analyze the business components
        3. Running the AM tester
        4. Exposing data to the UI layer
      7. Time for action – bind data to the UI components
        1. What just happened?
        2. Have a go hero – analyze the artifacts
      8. Time for action – running the application
        1. What just happened?
        2. Have a go hero – find out where the application is running from
        3. Pop quiz
      9. Summary
    10. 3. Understanding the Model Layer
      1. ADF business components
        1. What is an entity object?
      2. Time for action – checking the attributes of an entity object
        1. What just happened?
        2. Have a go hero – check the column mappings
      3. Time for action – creating an entity object for DEPT table
        1. What just happened?
        2. Have a go hero – set the primary key for the EmpEO.xml file
        3. Why association?
      4. Time for action – creating an association between EmpEO and DeptEO objects
        1. What just happened?
        2. Have a go hero – drag-and-drop components
        3. About the view object
          1. Types of view object
      5. Time for action – creating an entity-based view object
        1. What just happened?
        2. Importance of a view link
      6. Time for action – creating a view link between EmpVO and DeptVO
        1. What just happened?
        2. Have a go hero – drag-and-drop remaining components
        3. What is an application module?
      7. Time for action – creating an application module
        1. What just happened?
      8. Time for action – adding the view link to the application module
        1. What just happened?
      9. Business components in action
      10. Time for action – running the application module
        1. What just happened?
        2. Have a go hero – play with the AM tester for a while
      11. Options for the business components
        1. Entity object
          1. General
            1. Alternate key
            2. Tuning
            3. Security
            4. Business Logic Group
          2. Attributes
            1. Details
            2. UI Hints
            3. Validation Rule
            4. Security
            5. Dependencies
            6. Custom Properties
          3. Business Rules
          4. Java
          5. Business Events
          6. View Accessor
        2. Association
          1. Relationship
        3. View Object
          1. General
            1. Tuning
            2. Entity Objects
            3. Attributes
            4. List of Values
          2. Query
            1. Bind Variable
            2. View Criteria
        4. Pop quiz
      12. Summary
    11. 4. Validating and Using the Model Data
      1. Declarative validation
        1. Knowing the lifecycle of an entity object
        2. Types of validation
          1. Entity-level validation
          2. Attribute-level validation
          3. Transaction-level validation
        3. Built-in declarative validators
          1. Collection validator
      2. Time for action – adding a collection validator for the DeptEO file
        1. Adding the validation
        2. Specifying the execution rule
        3. Displaying the error message
        4. What just happened?
          1. The Compare validator
          2. The Key Exists validator
          3. The Length validator
          4. The List validator
          5. The Method validator
          6. The Range validator
          7. The Regular Expression validator
          8. The Script validator
          9. The UniqueKey validator
      3. Time for action – creating an alternate key for DeptEO
        1. What just happened?
        2. Have a go hero – compare the attributes
      4. Groovy expression
        1. Setting a default value
      5. Time for action – setting a default salary for employees
        1. What just happened?
        2. Have a go hero – set some default values for other attributes
        3. Validation execution
        4. Some commonly used expressions
      6. Time for action – adding a script expression
        1. What just happened?
        2. Have a go hero – try more features of Groovy expressions
      7. Learning about APIs
        1. Generating an entity implementation class
          1. Java classes in entity objects
      8. Time for action – generating a Java API for DeptEO
        1. What just happened?
          1. Classes for view objects
        2. Application module API
      9. Time for action – learning to override a method
        1. What just happened?
        2. Have a go hero – more on programming using APIs
      10. Managing transactions
        1. Configuring transactions
      11. Time for action – creating configurations
        1. What just happened?
        2. Have a go hero – explore the bc4j.xcfg file
      12. Exposing data
      13. Time for action – exposing a method using the client interface
        1. What just happened?
        2. Pop quiz
      14. Summary
    12. 5. Binding the Data
      1. ADF model layer
      2. Data Controls palette
        1. Data control
        2. The view object collection
        3. Attributes
        4. Operations
        5. Methods
        6. Return
        7. Parameters
        8. View criteria
      3. Time for action – adding a Commit button to the UI page
        1. What just happened?
        2. Have a go hero – inserting the records
      4. Working with the data control layer and binding
      5. Time for action – accessing the page definition file
        1. What just happened?
      6. Creating the bindings manually
      7. Time for action – creating page definition bindings
        1. What just happened?
        2. Adding executables
          1. accessorIterator
          2. invokeAction
          3. iterator
          4. page
          5. searchRegion
          6. shuttleRegion
        3. Pop quiz
      8. Summary
    13. 6. Displaying the Data
      1. Creating a page
        1. Knowing the page template
          1. Oracle Three Column Layout
          2. Oracle dynamic tabs shell
      2. Time for action – creating the page template
        1. What just happened?
        2. Have a go hero – adding attributes to the template
        3. Creating the page with the template
      3. Time for action – creating the dept.jspx file
        1. What just happened?
        2. Have a go hero
      4. Layout the page display
      5. Time for action – creating the layout for the page
        1. What just happened?
      6. Knowing the UI components
        1. Input components
          1. af:form
          2. af:inputText
          3. af:inputDate
          4. af:inputFile
          5. af:selectOneChoice
          6. af:selectOneRadio
          7. af:selectBooleanCheckbox
        2. Output components
          1. af:outputText
          2. af:message
            1. Showing the message programmatically
          3. af:outputFormatted
        3. Layout components
          1. af:panelGroupLayout
          2. af:panelStretchLayout
          3. af:panelGridLayout
          4. af:panelFormLayout
          5. af:panelHeader
        4. Query components
          1. af:query
        5. Popup components
          1. af:popup
          2. af:dialog
      7. Time for action – showing a popup to the user
        1. What just happened?
        2. Have a go hero
        3. List of values components
          1. af:inputComboboxListOfValues
        4. Navigation components
          1. af:commandbutton
          2. af:commandLink
        5. Menu components
          1. af:menu
        6. Table components
          1. af:table
          2. af:treeTable
        7. Miscellaneous components
          1. af:forEach
          2. af:iterator
          3. af:switcher
        8. Data visualization components
        9. Other tags
        10. Have a go hero – working with the components
      8. EL expression
      9. Time for action – adding an EL expression
        1. What just happened?
        2. Partial page rendering
        3. Have a go hero – completing the page
        4. Pop quiz
      10. Summary
    14. 7. Working with Navigation Flows
      1. Task flows
        1. Task flow types
          1. Unbounded task flow
          2. Bounded task flow
      2. Time for action – adding a bounded task flow to EmpDirectoryApplication
        1. What just happened?
        2. Task flow components
          1. Method call
      3. Time for action – adding a method call activity
        1. What just happened?
        2. Have a go hero – explore the task flow
          1. Router
          2. Save Point Restore
          3. Task Flow Call
          4. Task Flow Return
      4. Time for action – adding a Task Flow Return
        1. What just happened?
          1. Parent Action
          2. URL View
          3. View
      5. Time for action – adding a View activity to the task flow
        1. What just happened?
          1. Control flow
          2. Wild card
        2. Task flow options
          1. General
          2. Visibility
          3. Based on a template
          4. Managed beans
          5. Managed properties
          6. Parameters
      6. Time for action – passing parameters to a task flow
        1. What just happened?
        2. Have a go hero – explore the task flow
          1. Behavior
          2. Transactions
        3. Task flow as a region
      7. Time for action – adding a task flow as a region
        1. What just happened?
        2. ADF life cycle
          1. Memory scopes
          2. Relationships between the scopes
        3. Pop quiz
      8. Summary
    15. 8. Layout with Look and Feel
      1. Skinning essentials
        1. What is a skin?
      2. Time for action – adding a skin file to the application
        1. What just happened?
        2. Skin selectors
          1. Pseudo classes in the ADF skinning framework
      3. Using the skin editor
      4. Time for action – creating an ADF skin using the skin editor IDE
        1. What just happened?
        2. Extended skins
        3. Style classes
        4. Global selector aliases
        5. Faces component selectors
        6. Applying skins
      5. Deploying skins
      6. Time for action – deploying the skin file
        1. What just happened?
        2. Pop quiz
      7. Summary
    16. 9. Implementing Security
      1. Introduction to security
        1. Basic security
      2. Time for action – implementing basic security
        1. What just happened?
          1. web.xml
          2. weblogic.xml
          3. adf-config.xml
          4. jps-config.xml
          5. jazn-data.xml
      3. Applying security permissions
        1. Security for business objects
        2. Security for task flows and page-related files
      4. Time for action – adding permissions
        1. What just happened?
        2. Have a go hero – checking options for authentication in the Security wizard
      5. Creating a login page
      6. Time for action – creating a login page
        1. What just happened?
      7. Creating roles and groups
      8. Time for action – creating roles and assignments
        1. What just happened?
        2. Have a go hero – assigning different application roles to users
      9. Disabling ADF security
      10. Time for action – disabling security for ADF applications
        1. What just happened?
        2. Pop quiz
      11. Summary
    17. 10. Deploying the ADF Application
      1. ADF application deployment
        1. Overview
      2. Preparing for deployment
        1. Connection
        2. Deployment profiles
      3. Time for action – creating the deployment profile
        1. What just happened?
        2. Have a go hero – analyze the deployment profile configurations
        3. MDS configuration
        4. Deployment descriptors
          1. web.xml
          2. weblogic.xml
          3. weblogic-application.xml
        5. Security
          1. jazn-data.xml
        6. Data source
      4. Deployment to the WebLogic server
        1. Integrated server
      5. Time for action – creating a default domain for integrated server
        1. What just happened?
      6. Time for action – deployment to integrated server
        1. What just happened?
        2. Have a go hero
        3. Standalone server
      7. Time for action – deploying to the standalone server
        1. What just happened?
        2. Pop quiz
      8. Summary
    18. 11. Advanced Features of ADF
      1. Advanced topics on entity objects
        1. Tuning
        2. Custom properties
        3. Property sets
        4. A resource bundle
        5. Business logic groups
        6. Domain
        7. The Custom validation rule
        8. Custom error messages
      2. Advanced topics on view objects
        1. Avoid getRowCount, getEstimatedRowCount
        2. Working with Rowsets
        3. List of values
      3. Time for action – creating a list of values of a department
        1. What just happened?
        2. UI categories
      4. Application module state management
      5. Complex data controls
      6. Complex task flows
      7. Contextual events
      8. Time for action – publishing an event and subscribing it
        1. What just happened?
      9. Complex usage of a managed bean
      10. Debugging the application
        1. Debugging practices
        2. Exception handling
        3. Debugging the lifecycle
      11. The Metadata Services framework
        1. Customization layers
        2. Customization classes
        3. Seeded customization
        4. Runtime customization
      12. The Active Data Services framework
        1. The ADS framework
        2. Modes of data transport
      13. WebLogic server configurations
        1. Domain
        2. Servers
        3. Deployments
        4. The Security realm
        5. Data sources
        6. Diagnostics
      14. Creating an extension
        1. The extension.xml file
      15. Time for action – creating and running an extension
        1. What just happened?
        2. Pop quiz
      16. Summary
    19. Pop Quiz Answers
      1. Chapter 1, Installing and Configuring JDeveloper IDE
        1. Pop quiz
      2. Chapter 2, Getting Started with ADF
        1. Pop quiz
      3. Chapter 3, Understanding the Model Layer
        1. Pop quiz
      4. Chapter 4, Validating and Using the Model Data
        1. Pop quiz
      5. Chapter 5, Binding the Data
        1. Pop quiz
      6. Chapter 6, Displaying the Data
        1. Pop quiz
      7. Chapter 7, Working With Navigation Flows
        1. Pop quiz
      8. Chapter 8, Layout With Look and Feel
        1. Pop quiz
      9. Chapter 9, Implementing Security
        1. Pop quiz
      10. Chapter 10, Deploying the ADF Application
        1. Pop quiz
      11. Chapter 11, Advanced Features of ADF
        1. Pop quiz
    20. Index

Product information

  • Title: Oracle ADF 11gR2 Development Beginner's Guide
  • Author(s): Vinod Krishnan
  • Release date: April 2013
  • Publisher(s): Packt Publishing
  • ISBN: 9781849689007