Creating a Dojo Application

To create a new Dojo application, select File > New > Other > Dojo Application. The Dojo Application Wizard consists of two wizard pages.

The Name and Location page looks like this;

All inputs on this page are required. The Name will be the name for the new application. The Project input defines which workspace project the new application will be created in. The Location will be the name of the directory created which will contain all of the new application's assets. At this point, the user can accept the defaults on the remaining wizard page and select the Finish button to generate a new Dojo application.

The second page (shown below) requires that the user enter the default page title name that will be used in the generated html file, as well as whether to show the Dojo debug console within the page.

Once the Finish button is selected, the Dojo application wizard will generate a html template file which will serve as the basis for the Dojo application. This file will be created within the specified project within the specified project directory location.

Dojo Code Snippets

The Dojo personality has predefined code snippets available for use during Dojo application development. To open the Snippets View, select Window > Show View > Other > Basic > Snippets. Within this view, there will be a Dojo category that will contain all available Dojo code snippets. To use a code snippet, simple drag the desired snippet from the view and drop it within the <body> of the Dojo application html file. Depending on the snippet, there may be inputs required at drop time, via a dialog window, which are used to customize the code snippet.

Related tasks
Creating an AJAX enabled Project
Creating a Custom Dojo Widget
Launching an AJAX Application
Dojo application creation and launch demo


(C) Copyright IBM Corporation 2005. All Rights Reserved.
IBM is a registered trademark of IBM. All other trademarks are the property of their respective owners.