You are previewing Developing Web Applications with Oracle ADF Essentials.
O'Reilly logo
Developing Web Applications with Oracle ADF Essentials

Book Description

Quickly build attractive, user-friendly web applications using Oracle's free ADF Essentials toolkit

  • Quickly build compete applications with business services, page flows, and data-bound pages without programming

  • Use Java to implement any business rule or application logic

  • Choose the right architecture for high productivity and maintainability

  • Follow a common example application that illustrates the key concepts throughout the book

  • In Detail

    With ADF, Oracle gives you the chance to use the powerful tool used by Oracle’s own developers. Modern enterprise applications must be user-friendly, visually attractive, and fast performing. Oracle Fusion Applications are just that; but to get the desired output you need proven methods to use this powerful and flexible tool to achieve success in developing your enterprise applications.

    "Developing Web Applications with Orac" e ADF Essentials" explains all you need to know in order to build good-looking, user-friendly applications on a completely free technology stack. It explains the highly productive, declarative development approach that will literally have your application running within a few hours, as well as how to use Java to add business logic.

    "Developing Web Applications with Oracle ADF Essentials" tells you how to develop and deploy web application applications based on the highly productive and free Oracle ADF Essentials framework. You will first learn how to build business services on top of database tables, and then how to easily build a web application using these services. You will see how to visually design the flow through your application with ADF task flows, and how to use Java programming to implement business logic. Using this book, you can start building and deploying advanced web applications on a robust, free platform quickly.

    Towards the end, you will be ready to build real-world ADF Essentials applications and will be able to consider yourself an ADF Essentials journeyman.

    Table of Contents

    1. Developing Web Applications with Oracle ADF Essentials
      1. Table of Contents
      2. Developing Web Applications with Oracle ADF Essentials
      3. Credits
      4. About the Author
      5. Acknowledgement
      6. About the Reviewers
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
          3. Instant Updates on New Packt Books
      8. Preface
        1. The prescription
        2. Off-label use
        3. Allergies
        4. What's not there
        5. The sample application
        6. What this book covers
        7. What you need for this book
        8. Who this book is for
        9. Conventions
        10. Reader feedback
        11. Customer support
          1. Errata
          2. Piracy
          3. Questions
      9. 1. My First ADF Essentials Application
        1. Getting ready
        2. Installing MySQL
          1. MySQL installation
          2. Configuring
          3. Changing MySQL options
          4. Does it work?
          5. Modifying some data
        3. Installing Java Development Kit and GlassFish
          1. Installing JDK 7
          2. Installing GlassFish
          3. GlassFish installation
          4. Setting up the domain
          5. Does it work?
          6. Installing the MySQL connector in GlassFish
          7. Adding a DataSource to GlassFish
        4. Installing ADF Essentials
          1. Getting ADF Essentials
          2. Installing the ADF Share libraries in GlassFish
          3. Setting the GlassFish JVM parameters
          4. Does it work?
        5. Installing JDeveloper
          1. JDeveloper or Eclipse?
          2. Which JDeveloper?
          3. JDeveloper installation
          4. Installing the MySQL Connector in JDeveloper
          5. Installing the GlassFish Server Extension
          6. Connecting to the GlassFish server
        6. Building a simple ADF Essentials application
          1. Creating the application
          2. Database
          3. Business service
          4. Model layer
          5. Controller layer
          6. View layer
          7. Getting ready to deploy
            1. DataSource
            2. Application module configuration
            3. Change platform
          8. Running your first ADF Essentials application
        7. Can it run faster?
          1. Setting up WebLogic for MySQL
          2. Adding a DataSource to WebLogic
          3. Running your first ADF Essentials application again
        8. Summary
      10. 2. Creating Business Services
        1. Business service possibilities
        2. ADF Business Components
        3. Starting the example application
        4. How ADF business components work
        5. Building your own foundation
          1. Building framework extension classes
          2. Using framework extension classes
        6. Building entity objects for the example application
          1. Preparing to build
          2. Running the wizard
          3. Examining the result
          4. Setting the labels
          5. Autogenerated values
          6. Cleaning up the data types
          7. Cleaning up the associations
            1. Deleting superfluous associations
            2. Fixing wrong associations
            3. Removing invalid references from entity objects
        7. Building view objects
          1. The storyboard
          2. Building the customer view object
          3. Building the rental view object
          4. Creating a view link
        8. Application module
        9. Testing business components
        10. Summary
      11. 3. Creating Task Flows and Pages
        1. Building task flows
          1. Bounded and unbounded task flows
          2. Pages and fragments
          3. Task flow templates
          4. Example application
            1. Building the Rent DVD task flow
            2. Building the Return DVD task flow
          5. Memory scopes
          6. Other elements of task flows
        2. Building pages
          1. Using templates
            1. Facet definitions
            2. Page fragment template
            3. Page template
          2. Example application
            1. Building the customer search page
            2. Building the Return DVD page
            3. An alternative – ADF query panel
            4. Building the Rent DVD page
            5. Building a master page
            6. Running the page
        3. Using data bindings
          1. Showing a customer on a page
          2. Showing customer rentals on a page
          3. Adding navigation
        4. Summary
      12. 4. Adding Business Logic
        1. Adding logic to business components
          1. Logic in entity objects
            1. Overriding accessors
            2. Working with database triggers
            3. Overriding doDML()
          2. Data validation
            1. Declarative validation
            2. Regular expression validation
            3. Groovy scripts
            4. Method validation
          3. Logic in view objects
            1. Overriding accessors
            2. Change view criteria
          4. Logic in application modules
        2. Adding logic to the user interface
          1. Adding a bean method to a button
          2. Adding a bean to a task flow
          3. Accessing UI components from beans
          4. Accessing the binding layer
            1. Working with attribute values
            2. Working with operations
            3. Working with whole datasets
          5. Showing messages
        3. Example application
          1. Registering a rental
            1. Creating a bean
            2. Mapping the fields
            3. Establishing bindings
            4. Writing the code
          2. Registering a return
            1. Adding a column and a button
            2. Creating a bean
            3. Mapping the table
            4. Creating a view object method
            5. Publishing your method
            6. Establishing bindings
            7. Writing the bean code
          3. Marking items returned today
            1. Creating a transient attribute
            2. Binding the new attribute
            3. Coding the attribute return value
            4. Using the attribute value
            5. Other ideas
        4. Summary
      13. 5. Building Enterprise Applications
        1. Structuring your code
          1. Workspaces and projects
          2. The workspace hierarchy
          3. The directory structure
        2. Using version control
        3. Working with ADF libraries
          1. Creating ADF libraries
          2. Releasing ADF libraries
          3. Using ADF libraries
        4. Example application
          1. Creating the Master Application Workspace
            1. Creating the workspace
            2. Adding to source control
            3. Creating the ADF library folder
          2. Creating the CommonCode workspace
            1. Creating the workspace
            2. Recreating the framework extension classes
            3. Check your JDeveloper preferences
            4. Adding to source control
            5. Creating the ADF library
            6. Releasing the ADF library
          3. Creating the CommonUI workspace
            1. Creating the workspace
            2. Creating the templates
            3. Adding an ADF library
            4. Adding to source control
            5. Creating and releasing the ADF library
          4. Creating the CommonModel workspace
            1. Creating the workspace
            2. Adding an ADF library
            3. Creating the entity objects
            4. Adding to source control and creating the ADF library
          5. Creating the RentDvd subsystem workspace
            1. Creating the workspace
            2. Adding ADF libraries
            3. Creating the view object
            4. Creating the application module
            5. Creating the task flow and page fragment
            6. Adding a binding
            7. Adding the business logic
            8. Remaining work
          6. Creating the ReturnDvd subsystem workspace
            1. Creating the workspace
            2. Adding ADF libraries
            3. Creating the Customer view object
            4. Creating the Rental view object
            5. Creating a View Link
            6. Creating an application module
            7. Creating the task flow
            8. Creating the Customer Search Page Fragment
            9. Creating the Rentals Page Fragment
            10. Registering a return
            11. Remaining work
          7. Finishing the Master Application Workspace
            1. Adding the ADF libraries
            2. Create the master page
        5. Summary
      14. 6. Debugging ADF Applications
        1. ADF logging
          1. Creating a logger
          2. Adding log statements
          3. Business logging
          4. JDeveloper shortcuts
          5. Reading the logs
        2. Logging in GlassFish
          1. Controlling domain logging
          2. Controlling individual loggers
        3. Debugging in JDeveloper
          1. Debugging code
          2. Understanding the ADF lifecycle
          3. Debugging task flows
          4. Debugging into ADF libraries
            1. Creating a source directory
            2. Creating a source JAR file
            3. Including the source in the master application
            4. Placing a breakpoint in an ADF library
          5. Debugging into the ADF source code
        4. Summary
      15. 7. Securing an ADF Essentials Application
        1. Apache Shiro basics
          1. Getting the software
          2. Installing the packages in your application
          3. Configuring your application for Shiro
        2. Advanced Shiro
          1. User database
          2. Form-based authentication
            1. The login page
            2. The login bean
            3. The login method
            4. The user filter
            5. The Shiro configuration
          3. Accessing the user
        3. Implementing authorization
          1. Can I see some ID, please?
          2. Are you a member, Sir?
            1. Disabling elements
            2. Removing elements
          3. Securing task flows
        4. Summary
      16. 8. Build and Deploy
        1. Creating a build script
          1. Creating the script
          2. Deploying a single application
          3. Building the master application
            1. Starting point
            2. Building the application EAR file
            3. Building all the subsystems
            4. Copying all ADF libraries
            5. Putting it all together
        2. Automated deployment to GlassFish
          1. Deploying from the command line
          2. Deploying from Ant
        3. Integrating other functionality in your build
        4. Preparing to go live
          1. Cleaning up your code
            1. Database connections
            2. Deployment platforms
            3. Print statements
          2. Tuning your ADF application
        5. Summary
      17. Index