当前页面: 开发资料首页 → Netbeans 专题 → 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
|
![]() |
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.
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.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.Click Next and then read and accept the license agreement.
The Update Center wizard downloads the BluePrints AJAX Components module.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 |
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.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.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 |
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: BluePrints AJAX Components in the Palette |
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: