Creating web projects for mobile devices

Web projects hold all of the resources that are created and used when developing a mobile web application.

Procedure

  1. In the Enterprise Explorer view, right-click and select New > Web Project.
  2. In the Name field, enter a name for your new web project.
  3. From the list of project templates, click Dojo Toolkit.
  4. In the Programming Model section, specify one of the following programming models to use when creating your project:
    • To develop your web application using only Javascript, HTML, Dojo, and CSS, click Client-side only (HTML, JavaScript). Server-side programming is not available with this option.
    • To use Java™ EE technologies such as Servlets, JSPs, or JPA to develop your web application, click Java EE.
  5. To configure your new web project, click Next. The available configuration options depend on the programming model you selected.
  6. If you are using the Java EE programming model, proceed to step 7. If you are not using the Java EE programming model, jump to step 9.
  7. From the list of available configuration options, click Deployment.
  8. From the Target Runtime list, select the run time to use at build time to compile your new web project.
    Note: If the target run time was previously set, this list is not available. Complete one of the following steps to make this list available:
    • Specify a new EAR project name and then select a target run time.
    • Select an existing EAR project from the list that uses the target run time that you want to use.
  9. From the list of available configuration options, click Dojo Toolkit.
  10. Specify that you want to install only the Dojo mobile components of the Dojo Toolkit:
    1. Click Change these setup options and then click Next to proceed to the second page of the wizard.
    2. Expand the Select the Dojo components to be included in the project section and ensure dojo is selected. Clear other components.
    3. Expand dojox and select mobile.
    4. Click Finish to install the Dojo mobile components.
  11. Click Finish to create your web project.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tcrtwebprjmobile.html