Getting Started Quickly without the JET QuickStart posted by Hugh Zhang


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: ( 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


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.