December 2006 [Revision number: V1-2] |
|
|
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.
Downloading a Component Module
-
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.
- Ensure that NetBeans Visual Web Pack Update Center is selected.
-
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.
- In the left panel, select BluePrints AJAX Components, and then click the Add button to move it to the Include in Install panel.
Click Next and then read and accept the license agreement.
The Update Center wizard downloads the BluePrints AJAX Components module.
- Click Next to install the module, and then click Finish.
- Click OK to restart the IDE.
Importing the Module Into the IDE
- From the IDE's main menu, choose Tools > Component Library Manager.
- In the Component Library Manager, click the Import button, which is in
the lower left corner of the dialog box.
- In the Import Component Library dialog box, click the Browse button.
-
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 |
-
Click OK.
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.
- Click Close in the Component Library Manager to return to the IDE.
Adding a Component Library to a Project
-
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 Projects window, open the main project node and right-click the Component Libraries node.
- Choose Add Component Library.
-
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 |
- Select the BluePrints AJAX Components library and click Add Component Library.
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 |
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:
This page was last modified: December 6, 2006
|