JBoss.orgCommunity Documentation

Chapter 6. Mobile Web Tools

6.1. Overview of Mobile Web Tools
6.1.1. About Mobile Web Tools
6.2. Features of Mobile Web Tools
6.2.1. Features Overview
6.2.2. Create a Mobile Web Project
6.2.3. Use a HTML5 jQuery Mobile File Template
6.2.4. Access the jQuery Mobile Palette
6.2.5. Insert a jQuery Mobile Palette Widget into a HTML5 File
6.2.6. Get Assistance with jQuery Mobile Programming
6.2.7. View jQuery Mobile Pages in a Browser
6.3. Customizing Mobile Web Tools
6.3.1. Customizing Overview
6.3.2. Customize jQuery Mobile File Templates

Project wizards are available to assist you in generating new mobile web applications. The project wizards are listed in the JBoss Central tab:

The jQuery Mobile palette contains wizards for the HTML5 and jQuery Mobile user interface widgets commonly used in mobile web applications. The widgets are grouped in the palette by functionality, with tooltips providing widget descriptions.

To insert a palette widget into a file open in the JBoss Tools HTML Editor, drag the widget icon to the appropriate place in the file. Alternatively, ensure the text cursor is located at the desired insertion point in the file and click the widget icon. For widgets with no attributes that can be customized, such as JS/CSS and Field Container, the code snippets are immediately inserted into the file. For widgets with attributes that can be customized, a widget wizard opens allowing you to input attribute information. Once complete, click Finish and the code snippet is inserted into the file.


The widget wizards have three common aspects:

Design fields

These fields are unique to each widget. They allow you to customize the attributes of the widget by providing names, actions, numbers of elements, and styling themes. All widget wizards assign automatically generated values to the ID attribute in the case that you do not specify a value. Content assist is available for the URL (href) field by placing the text cursor in the field and pressing Ctrl+Space.

Add references to JS/CSS

This check box provides the ability to automatically add any missing library references to the HTML5 file that are required by the widget.

Preview Panes

These panes show previews of the code snippet for the widget and of the rendered widget. The preview panes can be shown and hidden by clicking the Show Preview and Hide Preview button, respectively.