JamesHolmes.com
Faces Console
Home  •  Change Log  •  Download  •  FAQ  •  Help  •  Screen Shots


Help

  1. Installing Faces Console


  2. Upgrading Faces Console


  3. Running Faces Console (Standalone)
    1. Microsoft Windows Platforms
    2. Unix/Linux Platforms

  4. Using Faces Console
    1. Supported Config Files
    2. Turning Off DTD Validation
    3. Configuring Output Options

  5. Using Faces Console with Borland JBuilder
    1. Installing Faces Console OpenTool
    2. Turning Off DTD Validation

  6. Using Faces Console with Eclipse and IBM WebSphere Application Developer
    1. Installing Faces Console Plugin
    2. Using Faces Console inside Eclipse/WSAD
    3. Turning Off DTD Validation

  7. Using Faces Console with IntelliJ IDEA
    1. Installing Faces Console Plugin
    2. Using Faces Console inside IDEA
    3. Turning Off DTD Validation

  8. Using Faces Console with NetBeans and Sun One Studio (Forte)
    1. Installing Faces Console Module
    2. Turning Off DTD Validation

  9. Using Faces Console with Oracle JDeveloper
    1. Installing Faces Console Addin
    2. Using Faces Console inside JDeveloper
    3. Turning Off DTD Validation

1.  Installing Faces Console

Installation is quick and easy when following these simple steps.
  1. Download the latest Faces Console release.
  2. Unzip the distribution file to the directory where you want the Faces Console software installed at.

    i.e. "c:\Program Files\" on Microsoft Windows
    i.e. "/home/<username>/" on Unix/Linux

    The distribution contains a parent directory named after the release with all of the directories and files underneath it. For example, the 1.0 release distribution would have a parent directory called "faces-console-1.0".

2.  Upgrading Faces Console

Upgrading from one version of Faces Console to a newer version is pretty straight forward. If you are only using the standalone Faces Console and no IDE plugins then all you have to do is follow the installation instructions for the new version. Each Faces Console realease has a different parent directory, thus allowing for multiple versions to be installed at once.

You may decide to remove the previous version once the new version is installed. Simply delete the parent directory for the previous version from where you installed it and the old version will no longer be installed.

If you are using the Faces Console as a plugin to an IDE then you should only need to repeat the "faces-console.jar" portion of the installation process for that IDE plugin. Please see the installation instructions for the IDE plugin.



3.  Running Faces Console (Standalone)

a.  Microsoft Windows Platforms

There are two ways to run the Faces Console on Windows machines:
  1. Using Windows explorer, navigate to the directory where you unzipped the Faces Console distribution to. Go into the "bin" directory and double click on "console".
  2. Open a DOS command prompt window and navigate to the directory where you unzipped the Faces Console distribution to. Go into the "bin" directory and type "console".
b.  Unix/Linux Platforms

  1. Navigate to the directory where you unzipped the Faces Console distribution to.
  2. If you have not already done so, change "console.sh" file permissions to be exceutable.
  3. Go into the "bin" directory and run "console.sh".

4.  Using Faces Console

The Faces Console is a simple GUI for editing the elements of JavaServer Faces and JavaServer Faces-related config files. For information on what each config file element does and what values it accepts, please see the config file DTDs hyperlinked below.

Please see the FAQ page for other topics related to using Faces Console.
a.  Supported Config Files

Below is a list of the config files and their associated DOCTYPEs that Faces Console supports. If your config file does not specify one of these DOCTYPEs then Faces Console will not recognize your config file and thus will not be able to open it.
Faces
<!DOCTYPE faces-config PUBLIC
          "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
          "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

<!DOCTYPE faces-config PUBLIC
          "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
          "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
JSP Tag Library
<!DOCTYPE taglib PUBLIC
          "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
          "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">

<!DOCTYPE taglib PUBLIC
          "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
          "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">

b.  Turning Off DTD Validation

If your config file uses an altered DTD or simply has no DTD, then the Faces Console will not be able to open your config file. To get around this you can turn off config file validation, thus allowing non-standard files to be opened.

In the standalone version of the software you can turn off this validation by selecting the option for it on the "Options" menu. For instructions on how to turn off validation for IDE plugins, see the specific plugin's section on this page.

c.  Configuring Output Options

The Faces Console reads in Faces config XML files and then manipulates them in memory using the JDOM XML library. Unfortunately, XML parser libraries do not retain all of a file's original formatting when it is parsed. This leads to poorly formatted XML output when the files are saved.

By default, the Faces Console saves/outputs XML files using JDOM's built in XMLOutputter functionality, which results in poorly formatted XML files. To get around this limitation, the standalone version of the Faces Console allows for the configuration of how XML output will be generated. Underneath the "Options" menu in the standalone version you can select "Output". This will bring up a dialog with options for generating "Pretty" output. Following is an explanation of each of the output options.

NOTE: Enabling the "Pretty" output options will remove any comments and formatting from your original config files. The "Pretty" output option simply outputs config files' elements and their attributes.


  1. Enables and disables the use of "Pretty" output options.
  2. Determines the type of newlines to use. System Default is the default and recommended setting. For example, if you are using the Faces Console on a Windows system the System Default will use Windows newlines.
  3. Determines the number of new lines to place in between elements.
  4. Determines the number and type of indenting to use. Indenting is used for elements and is leveled. Each level in the element hierarchy is a level of indenting.
  5. Determines whether an element's attributes should each be placed on a new line or if they should be placed on the same line as the element.
  6. Determines whether or not empty elements, elements without sub elements, should be expanded. For example, if you have an <action> element with no child elements and have selected to expand empty elements it will be outputted as <action></action> instead of just <action/>.
  7. Shows an example of how the output will look with the output options applied. This changes as you change the output options.

5.  Using Faces Console with Borland JBuilder

The Faces Console software integrates with Borland JBuilder as an OpenTool for seamless development of JavaServer Faces applications in one development tool. Once the Faces Console OpenTool for JBuilder has been installed, you can manage JavaServer Faces config files by simply opening them and clicking on the "Faces Console" tab.
a.  Installing Faces Console OpenTool
  1. Shutdown JBuilder if it is currently running.
  2. Navigate to the directory where you have JBuilder installed and then navigate into the "lib" directory.
  3. In another window navigate to the directory where you installed the Faces Console software and then navigate into the "com.jamesholmes.console.faces" directory and then into the "lib" directory.
  4. Copy the "xerces.jar" file from the Faces Console "lib" directory into the JBuilder "lib" directory if and only if "xerces.jar" does not already exist (should only be necessary for JBuilder 4).
  5. Navigate into the "ext" directory from the JBuilder "lib" directory.
  6. Copy the "faces-console.jar" file from the Faces Console "lib" directory into the JBuilder "ext" directory.
  7. Restart JBuilder.
b.  Turning Off DTD Validation
  1. Startup JBuilder if it is not already running.
  2. Go to the "Tools" menu and then select "IDE Options".
  3. Select the "Faces Console" tab.
  4. Set your desired validation preference.
NOTE: JBuilder will not recognize your JavaServer Faces config files if they do not have a proper DOCTYPE declaration.

To see an example of how to use this OpenTool go to the Screen Shots Page.

6.  Using Faces Console with Eclipse and IBM WebSphere Application Developer

The Faces Console software integrates with Eclipse/WSAD as a Plugin for seamless development of JavaServer Faces applications in one development tool. Once the Faces Console Plugin for Eclipse/WSAD has been installed, you can manage JavaServer Faces config files by simply right clicking on them and selecting "Open With" and then selecting "Faces Console".
a.  Installing Faces Console Plugin

Eclipse 3.0m7 and higher
  1. Shutdown Eclipse if it is currently running.
  2. Navigate to the directory where you have Eclipse installed and then navigate into the "plugins" directory.
  3. In another window navigate to the directory where you installed the Faces Console software.
  4. Copy the "com.jamesholmes.console.faces" directory from the Faces Console installation directory into the Eclipse "plugins" directory.
  5. Navigate into the "com.jamesholmes.console.faces" directory underneath Eclipse "plugins" directory.
  6. Rename "plugin.xml" to "plugin.xml.bak".
  7. Rename "plugin-3.0.xml" to "plugin.xml".
  8. Restart Eclipse.
    1. NOTE: If you are using Eclipse 3 under Linux/Unix, you must run it using JDK 1.5. This is necessary because Faces Console makes uses of a special library (SWT_AWT) for integrating SWT and Swing. The SWT_AWT library requires JDK 1.5 under Linux/Unix.
WSAD and Eclipse 3.0m6 and earlier
  1. Shutdown Eclipse/WSAD if it is currently running.
  2. Navigate to the directory where you have Eclipse/WSAD installed and then navigate into the "plugins" directory.
  3. In another window navigate to the directory where you installed the Faces Console software.
  4. Copy the "com.jamesholmes.console.faces" directory from the Faces Console installation directory into the Eclipse/WSAD "plugins" directory.
  5. Restart Eclipse/WSAD.
b.  Using Faces Console inside Eclipse/WSAD
  1. Startup Eclipse/WSAD if it is not already running.
  2. Find your JavaServer Faces config file in the Navigator or Packages view on the left hand side of the screen.
  3. Right click on the config file and select "Open With" from the menu and then select "Faces Console".
    1. NOTE: Eclipse/WSAD will not recognize your Faces config files if they are not named "faces-config.xml" (JavaServer Faces files). If you would like Eclipse to recognize other filenames as being Faces files you can edit the "filenames" attribute in the "plugin.xml" file in the "com.jamesholmes.console.faces" directory underneath your Eclipse/WSAD "plugins" directory.
  4. To see an example of this, go to the Screen Shots Page.
c.  Turning Off DTD Validation
  1. Startup Eclipse/WSAD if it is not already running.
  2. Go to the "Window" menu and then select "Preferences".
  3. Select the "Faces Console" node in the tree on the left.
  4. Set your desired validation preference.

7.  Using Faces Console with IntelliJ IDEA

The Faces Console software integrates with IntelliJ IDEA as a Plugin for seamless development of JavaServer Faces applications in one development tool. Once the Faces Console Plugin for IDEA has been installed, you can manage JavaServer Faces config files by simply right clicking on their nodes in the Project window and then selecting "Faces Console".
a.  Installing Faces Console Plugin
  1. Shutdown IDEA if it is currently running.
  2. Navigate to the directory where you have IDEA installed and then navigate into the "plugins" directory.
  3. In another window navigate to the directory where you installed the Faces Console software and then navigate into the "com.jamesholmes.console.faces" directory and then into the "lib" directory.
  4. Copy the "faces-console.jar" file from the Faces Console "lib" directory into the IDEA "plugins" directory.
  5. Restart IDEA.
b.  Using Faces Console inside IDEA
  1. Startup IDEA if it is not already running.
  2. Find your JavaServer Faces config file in the Project, Structure or Web pane on the left hand side of the screen.
  3. Right click on the config file and select "Edit with Faces Console" from the menu.
    1. Note that if the "Edit with Faces Console" option does not show up on the file's context menu, then your config file does not have a DOCTYPE definition that Faces Console recognizes.
  4. To see an example of this, go to the Screen Shots Page.
c.  Turning Off DTD Validation
  1. Startup IDEA if it is not already running.
  2. Go to the "Options" menu and then select "IDE Settings".
  3. Select the "Faces Console" button on the left.
  4. Set your desired validation preference.
NOTE: This plugin currently only works with IDEA 3.0 (build 668) or later.

8.  Using Faces Console with NetBeans and Sun One Studio (Forte)

The Faces Console software integrates with NetBeans/SOS for seamless development of JavaServer Faces applications in one development tool. Once the Faces Console module for NetBeans/SOS has been installed, you can manage JavaServer Faces config files by simply right clicking on their nodes in the Filesystems explorer and then selecting "Open".
a.  Installing Faces Console Module

NetBeans 3.3 and Sun One Studio 4.0 and higher
  1. Start up NetBeans/SOS.
  2. Go to the "Tools" menu and select "Options".
  3. In the tree on the left hand side, click on "IDE Configuration" then "System" then right click on the "Modules" node and select "Add" then select "Module...".
  4. Use the file chooser to navigate to the directory where you installed the Faces Console software and then navigate into the "com.jamesholmes.console.faces" directory and then into the "lib" directory.
  5. Select the file "faces-console.jar" and then select "Open" in the file chooser.
  6. Restart NetBeans/SOS.
NetBeans 3.2.x and Forte for Java 3.0
  1. Start up NetBeans/FFJ.
  2. Go to the "Tools" menu and select "Options".
  3. In the tree on the left hand side, right click on the "Modules" node and select "New" then select "Module...".
  4. Use the file chooser to navigate to the directory where you installed the Faces Console software and then navigate into the "com.jamesholmes.console.faces" directory and then into the "lib" directory.
  5. Select the file "faces-console.jar" and then select "Open" in the file chooser.
  6. Restart NetBeans/FFJ.
b.  Turning Off DTD Validation

NetBeans 3.3 and Sun One Studio 4.0 and higher
  1. Startup Netbeans/SOS if it is not already running.
  2. Go to the "Tools" menu and then select "Options".
  3. Select the "Uncategorized" node and then the "Faces Console Settings" node in the tree on the left.
  4. Set your desired validation preference.
NetBeans 3.2.x and Forte for Java 3.0
  1. Startup Netbeans/FFJ if it is not already running.
  2. Go to the "Tools" menu and then select "Options".
  3. Select the "Faces Console Settings" node in the tree on the left.
  4. Set your desired validation preference.
NOTE: NetBeans/SOS will not recognize your JavaServer Faces config files if they do not have a proper DOCTYPE declaration.

To see an example of how to use this Module go to the Screen Shots Page.

9.  Using Faces Console with Oracle JDeveloper

The Faces Console software integrates with Oracle JDeveloper as an Addin for seamless development of JavaServer Faces applications in one development tool. Once the Faces Console Addin for JDeveloper has been installed, you can manage JavaServer Faces config files by simply opening them with the "Faces Console Editor" from the System Navigator.
a.  Installing Faces Console Addin
  1. Shutdown JDeveloper if it is currently running.
  2. Navigate to the directory where you have JDeveloper installed and then navigate into the "jdev" directory.
  3. Next, navigate into the "lib" directory and then into the "ext" directory.
  4. In another window navigate to the directory where you installed the Faces Console software and then navigate into the "com.jamesholmes.console.faces" directory and then into the "lib" directory.
  5. Copy the "faces-console.jar" file from the Faces Console "lib" directory into the JDeveloper "ext" directory.
  6. Restart JDeveloper.
b.  Using Faces Console inside JDeveloper
  1. Startup JDeveloper if it is not already running.
  2. Find your JavaServer Faces config file in the System Navigator pane on the left hand side of the screen.
  3. Right click on the config file and select "Faces Console Editor" from the menu.
    1. Note that if the "Faces Console Editor" option does not show up on the file's context menu, then your config file does not have a DOCTYPE definition that Faces Console recognizes.
  4. To see an example of this, go to the Screen Shots Page.
c.  Turning Off DTD Validation
  1. Startup JDeveloper if it is not already running.
  2. Go to the "Tools" menu and then select "Preferences".
  3. Select the "Faces Console" node in the tree on the left.
  4. Set your desired validation preference.


JamesHolmes.com  |  james@jamesholmes.com