站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Netbeans 专题Downloading and Importing Ajax and Other Components

Downloading and Importing Ajax and Other Components

摘要: This tutorial shows how to download a component module from the NetBeans Visual Web Pack 5.5 Update Center and import the module into the IDE. The instructions are specific to downloading the sample BluePrints AJAX Component module for the first time. If you are downloading another component module, simply substitute the module name

This tutorial shows how to download a component module from the NetBeans Visual Web Pack 5.5 Update Center and import the module into the IDE. The instructions are specific to downloading the sample BluePrints AJAX Component module for the first time. If you are downloading another component module, simply substitute the module name.

Contents

Downloading a Component Module
Importing the Module Into the IDE
Adding a Component Library to a Project
Updating, Reverting, or Removing a Component Library
  Content on this page applies to NetBeans 5.5 Visual Web Pack

Note: If you installed the BluePrints AJAX Component library with the Technology Preview release, you must remove this library and then re-install the library for use with the production release. For instructions on removing a library, see Updating, Reverting, or Removing a Component Library.

Downloading a Component Module

  1. From the IDE's main menu, choose Tools > Update Center.

    The Update Center wizard opens. If you are working behind a firewall, you might need to configure the proxy server. Click Proxy Configuration and, if necessary, enter your proxy information in the dialog box.
  2. Ensure that NetBeans Visual Web Pack Update Center is selected.
  3. Click Next in the Update Center wizard.

    The wizard checks for available updates and new modules, then opens the Select Modules to Install pane if there are updates or new modules available.
  4. In the left panel, select BluePrints AJAX Components, and then click the Add button to move it to the Include in Install panel.
  5. Click Next and then read and accept the license agreement.

    The Update Center wizard downloads the BluePrints AJAX Components module.
  6. Click Next to install the module, and then click Finish.
  7. Click OK to restart the IDE.

Importing the Module Into the IDE

  1. From the IDE's main menu, choose Tools > Component Library Manager.
  2. In the Component Library Manager, click the Import button, which is in the lower left corner of the dialog box.
  3. In the Import Component Library dialog box, click the Browse button.
  4. In the Open dialog box, select the ui.complib file and click Open.

    The ui.complib path and BluePrints AJAX components appear in the Import Component Library dialog box, similar to the following figure.

    Figure 1: Import Component Library dialog box
    Figure 1: Import Component Library Dialog Box
  5. Click OK.
  6. If you previously installed the BluePrints AJAX Components, the IDE displays a dialog box asking whether you want to overwrite the component library. If you see this dialog box, click Yes.

    You see the component library selected in the Component Library manager.
  7. Click Close in the Component Library Manager to return to the IDE.

Adding a Component Library to a Project

  1. Open the Visual Web Application project in which you want to use the component library's components.

    Note: If the components are JavaServer Faces 1.2 components, the project must use a server that supports this level of JavaServer Faces technology. For example, if you use Sun Java System Application Server 9.0 and Java EE 5, both JavaServer Faces 1.2 and JavaServer Faces 1.1 components are supported.
  2. In the Projects window, open the main project node and right-click the Component Libraries node.
  3. Choose Add Component Library.
  4. In the Add Component Library dialog box, you see the BluePrints AJAX Components library, as shown in the following figure:

    Figure 2: Add Component Library dialog box
    Figure 2: Add Component Library Dialog Box
  5. Select the BluePrints AJAX Components library and click Add Component Library.
  6. There is a delay as the IDE adds the jars contained in the component library to the project's classpath and displays the components in the Palette.

    When you open a page of your project in the Visual Designer, you see the BluePrints AJAX Components and BluePrints AJAX Support Beans categories in the Palette. If you expand both categories, you see the nodes shown in the following figure. You can drag the new components and drop them on pages you are editing in the Visual Designer, and you can work with these components just as you work with the components supplied with Visual Web Pack.

    Figure 3: AJAX Components in the Palette
    Figure 3: BluePrints AJAX Components in the Palette

Updating, Reverting, or Removing a Component Library

You can update or revert the version of the library used by a project, and you can remove a component library. Open the project's Component Libraries node (as described in Step 2 above), right-click the library node, and choose Update, Replace, or Remove. For more information, open the help in NetBeans Visual Web Pack by choosing Help > Help Contents, and then search for "Updating a Component Library choose Update" or "Removing a Component Library Remove button".


See Also:



>> More Visual Web Pack Documentation

 
This page was last modified:  February 26, 2007



↑返回目录
前一篇: Faster Enterprise Application Development with NetBeans 5.5
后一篇: Developing a Web Application