Book Image

Oracle JET for Developers

By : Raja Malleswara Rao Malleswara Rao Pattamsetti
Book Image

Oracle JET for Developers

By: Raja Malleswara Rao Malleswara Rao Pattamsetti

Overview of this book

This book will give you a complete practical understanding of the Oracle JavaScript Extension Toolkit (JET) and how you can use it to develop efficient client-side applications with ease. It will tell you how to get your own customized Oracle JET set up. You'll start with individual libraries, such as jQuery, Cordova, and Require.js. You'll also get to work with the JavaScript libraries created by Oracle, especially for cloud developers. You'll use these tools to create a working backend application with these libraries. Using the latest Oracle Alta UI, you'll develop a state-of-the-art backend for your cloud applications. You'll learn how to develop and integrate the different cloud services required for your application and use other third-party libraries to get more features from your cloud applications. Toward the end of the book, you'll learn how to manage and secure your cloud applications, and test them to ensure seamless deployment.
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Application routing


Oracle JET provides a Single-Page Application (SPA) design for our application through the ojModule binding and oj.Router routing architecture. The way they work is through a content replacement technique by ojModule from Knockout.js with the content routing provided by oj.Router. The following diagram represents the difference between the traditional and Single-Page Application life cycle:

In a traditional page life cycle, each page gets loaded from the server to the client on request, and the page gets reloaded with the next page when the user tries to navigate through the application. In Single-Page Applications, the client loads the first page on initial request and when the user tries to navigate to the next page, an AJAX request is made to the Server to dynamically load the content and replace the view components with the desired elements, instead of a complete page reload.

The following is the basic routing example using the Oracle JET module and routing elements...