Installing the Project Dynamic Faces Ajax Components and Samples Plugin
This document shows how to download and install
the Project Dynamic Faces Ajax Components and Samples,
which includes the Dynamic Faces component library 0.2 and the
Currency Trader sample application.
Note: If you are using NetBeans 6.0, the plugin is called Visual Web JSF Post Release Samples
Note: The
Dynamic Faces component library are only supported
for use with the GlassFish Application Server V2.
Contents
To follow this tutorial, you need the following software and resources.
| NetBeans IDE |
Web & Java EE version 6.1 or 6.0 |
| Java Developer Kit (JDK) |
Version 6 or
version 5 |
JavaServer Faces Components/
Java EE Platform |
1.1 with J2EE 1.4
|
| Travel Database |
Not required |
Installing the Plugin
-
From the IDE's main menu, choose Tools > Plugins.
The Plugins wizard opens
-
If you are working behind a firewall, you might need to configure the proxy server.
Click the Settings tab,
click Proxy Settings, enter your proxy information, and click OK.
- Click the Available Plugins tab.
-
If the catalog of available plugins is empty, click Reload Catalog.
Scroll to and select the entry for the Project Dynamic Faces Ajax Components and Samples,
as shown below.
Note: If you are using NetBeans 6.0, the plugin is called Visual Web JSF Post Release Samples
Note: If you plan to run the Currency Trader sample application,
also select the entry for the Visual Web JSF Backwards Compatibility Kit.
- Click Install.
- Click Next.
Read and accept the license agreement, then click Install.
The wizard downloads the plugin.
- Click Finish, and click Close.
Adding a Component Library to a Project
- Open the Visual Web JavaServer Faces project in which you want to use the component library's components.
In the Projects window, expand the project's node,
right-click the Component Libraries node, and choose Add Component Library.
The Add Component Library dialog box displays the available component libraries,
as shown in the following figure:
Select the desired component library and click Add Component Library.
The IDE adds component library jar files
to the project's classpath.
When you open a project web page in the Visual Designer, the Palette now shows
the categories for the component library that you just added. Expand the categories to see the component nodes,
as shown in the following figure. You can drag the new components and drop them on pages
that you are editing in the Visual Designer, and you can work with these components just as
you work with the components supplied with the Visual Web JavaServer Faces framework.
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 component library's node, and choose Update, Replace, or Remove. For more information, open the help by choosing Help > Help Contents, and then search for
"Updating a Component Library" or "Removing a Component Library".
Installing the Sample Application
This plugin includes the Currency Trader sample application, which
demonstrates how to use Dynamic Faces technology to employ Ajax techniques
with Ajax-unaware JavaServer Faces components. See
Installing the Currency Trader Sample
Application for
information about creating and running the application.
See Also
This page was last modified: April 18, 2008