While 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
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
- 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.
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.