FeaturesPluginsDocs & SupportCommunityPartners

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

Content on this page applies to NetBeans IDE 6.0 and 6.1

To follow this tutorial, you need the following software and resources.

Software or Resource Version Required
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

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

    The Plugins wizard opens
  2. 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.
  3. Click the Available Plugins tab.
  4. If the catalog of available plugins is empty, click Reload Catalog.
  5. 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

    Module Selection in Plugins Manager

    Note: If you plan to run the Currency Trader sample application, also select the entry for the Visual Web JSF Backwards Compatibility Kit.

  6. Click Install.
  7. Click Next.
  8. Read and accept the license agreement, then click Install.

    The wizard downloads the plugin.
  9. Click Finish, and click Close.

Adding a Component Library to a Project

  1. Open the Visual Web JavaServer Faces project in which you want to use the component library's components.
  2. 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:

    Add Component Library dialog box
  3. 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.

    AJAX Components and Dynamic Faces 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 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


Bookmark this page

del.icio.us furl simpy slashdot technorati digg
Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Open ESB - The Open Enterprise Service Bus Powered by