Setting Web Application Component Support Preferences

A Web Application project supports the following components:

You can add a component and define it by adding files from your file system. You can only change user-defined components.

To add component support:

  1. Select Window|Preferences from the main menu bar of the Web Application Development perspective.

    The Preferences dialog box appears.

  2. Expand Sybase, Inc in the left pane.

  3. Expand Web Application Development and select Component Support.

    The Component Support dialog box appears in the right pane containing a list of available components, including the component's URI addresses.

  4. Do any of the following:

    • To add or remove libraries or jar files for a user-defined component, select the component, click Manage, and skip to step 5.

    • To delete a user-defined component, click Remove.

    • To import files into a user-defined component from a predefined file, click Import.

    • To export files from a user-defined component to a file, click Export.

      Note

      You can also delete, import, or export user-defined files from the Component Management dialog box, which opens when you click Manage.

  5. Use the toolbar at the top of the left pane of the Component Management dialog box to do any of the following:

    Toolbar buttons

    ButtonDescription
    New Opens the Categories dialog box where you can create and define a new category of component support. This enables you to use third-party taglib support and add the jars and tld files required by the category. After you create a new category, the New button is followed by a down arrow, which lets you create another new category or a new item, which can be a .tld, .jar, or .zip file. An item is referenced as a taglib URI. The URI is the item ID. For example, http://java.sun.com/jsf/html is a taglib defined by JSF, and in the component support, it would have an item mapped to it.
    Delete Deletes the selected user-defined component. Only user-defined categories and items can be deleted.
    Move DownMoves the selected item down in the list.
    Move UpMoves the selected item up in the list.
    Import Opens the Open dialog box to allow you to import user-defined category information that was previously exported, enabling you to reuse user-defined categories. The Import button is enabled only if a user-defined component is selected.
    Export Opens the Open dialog box to allow you to export user-defined category information, such as jars, .tld files, and the location in the file system, to an .xml file. The Export button is enabled only if a user-defined component is selected.
  6. In the right pane of the Component Management dialog box, click Add to select .tld, .jar, or .zip files to add to your user-defined component.

    The Open dialog box appears.

  7. Select the file or files that you want to add and click Open.

    The selected file or files appear in the Libraries list.

  8. To remove a file from the selected user-defined component, select the file and click Remove.

  9. Click OK.

    Your changes are saved, the Component Management dialog box closes, and the Preferences dialog box reappears.

  10. Click OK.

Adding Component Support to a Web Application Project

Developing a Web Application

Preferences

Web Application Development Perspective

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com