X

Developer Partner Community

  • February 15, 2016

Getting Started Quickly without the JET QuickStart posted by Hugh Zhang

Juergen Kress
PaaS & Middleware Partner Adoption

clip_image002While the JET QuickStart is our recommended download for starting with JET, there are cases where a more basic starting point is desired. For example, you may be adding JET to an existing application or simply learning how the various parts of JET interact. In this post, we'll summarize how to download the JET libraries and create a brand new page.

Step 1: Download the JET Libraries and Unzip

We'll start by downloading and unzipping the Oracle JavaScript Extension Toolkit: Base Distribution from the Oracle JavaScript Extension Toolkit Download site. After unzipping, the folder structure should look like the image below. If you are integrating JET into an existing application, copy the contents into the site root of your application.

Tip: The CSS files and the JS libraries generally come in both debug and minified versions. If you run into bugs, check the files to see if there is a debug version to use instead.

Step 2: Create main.js for RequireJS Configuration

JET uses RequireJS for modular javascript loading and this step will make sure all of the JET libraries can be loaded. Start by copying js/libs/oj/v1.1.2/main-template.js into a new js/main.js file. This file will contain two primary sections:

  • requirejs.config: Defines path mappings for the modules used in JET. Version numbers appear in folder and file names, so it's important to copy from the main-template.js of the same version as your JET libraries.
  • require(modules, callback): Defines the specific modules that will be loaded and takes a callback function that is commonly used to create a view model and apply knockout bindings.

Here is what your main.js file should look like. In lines 53-73, I've added some code to request the ojinputtext module, create a simple view model, and apply knockout bindings with an instance of that view model. We'll use these changes in the HTML page in the next step. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Technorati Tags: WebLogic,WebLogic Community,Oracle,OPN,Jürgen Kress

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.