|
Faces Console |
Home Change Log Download FAQ Help Screen Shots |
Help
- Installing Faces Console
- Upgrading Faces Console
- Running Faces Console (Standalone)
- Using Faces Console
- Using Faces Console with Borland JBuilder
- Using Faces Console with Eclipse and IBM WebSphere Application Developer
- Using Faces Console with IntelliJ IDEA
- Using Faces Console with NetBeans and Sun One Studio (Forte)
- Using Faces Console with Oracle JDeveloper
1. Installing Faces Console
Installation is quick and easy when following these simple steps.
- Download the latest Faces Console release.
- 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:b. Unix/Linux Platforms
- 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".
- 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".
- Navigate to the directory where you unzipped the Faces Console distribution to.
- If you have not already done so, change "console.sh" file permissions to be exceutable.
- 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.
- Enables and disables the use of "Pretty" output options.
- 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.
- Determines the number of new lines to place in between elements.
- 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.
- 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.
- 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/>.
- Shows an example of how the output will look with the output options applied. This changes as you change the output options.
a. Installing Faces Console OpenToolb. Turning Off DTD Validation
- Shutdown JBuilder if it is currently running.
- Navigate to the directory where you have JBuilder installed and then navigate into the "lib" directory.
- 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.
- 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).
- Navigate into the "ext" directory from the JBuilder "lib" directory.
- Copy the "faces-console.jar" file from the Faces Console "lib" directory into the JBuilder "ext" directory.
- Restart JBuilder.
NOTE: JBuilder will not recognize your JavaServer Faces config files if they do not have a proper DOCTYPE declaration.
- Startup JBuilder if it is not already running.
- Go to the "Tools" menu and then select "IDE Options".
- Select the "Faces Console" tab.
- Set your desired validation preference.
To see an example of how to use this OpenTool go to the Screen Shots Page.
a. Installing Faces Console Plugin
Eclipse 3.0m7 and higherWSAD and Eclipse 3.0m6 and earlier
- Shutdown Eclipse if it is currently running.
- Navigate to the directory where you have Eclipse installed and then navigate into the "plugins" directory.
- In another window navigate to the directory where you installed the Faces Console software.
- Copy the "com.jamesholmes.console.faces" directory from the Faces Console installation directory into the Eclipse "plugins" directory.
- Navigate into the "com.jamesholmes.console.faces" directory underneath Eclipse "plugins" directory.
- Rename "plugin.xml" to "plugin.xml.bak".
- Rename "plugin-3.0.xml" to "plugin.xml".
- Restart Eclipse.
- 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.
b. Using Faces Console inside Eclipse/WSAD
- Shutdown Eclipse/WSAD if it is currently running.
- Navigate to the directory where you have Eclipse/WSAD installed and then navigate into the "plugins" directory.
- In another window navigate to the directory where you installed the Faces Console software.
- Copy the "com.jamesholmes.console.faces" directory from the Faces Console installation directory into the Eclipse/WSAD "plugins" directory.
- Restart Eclipse/WSAD.
c. Turning Off DTD Validation
- Startup Eclipse/WSAD if it is not already running.
- Find your JavaServer Faces config file in the Navigator or Packages view on the left hand side of the screen.
- Right click on the config file and select "Open With" from the menu and then select "Faces Console".
- 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.
- To see an example of this, go to the Screen Shots Page.
- Startup Eclipse/WSAD if it is not already running.
- Go to the "Window" menu and then select "Preferences".
- Select the "Faces Console" node in the tree on the left.
- Set your desired validation preference.
a. Installing Faces Console Pluginb. Using Faces Console inside IDEA
- Shutdown IDEA if it is currently running.
- Navigate to the directory where you have IDEA installed and then navigate into the "plugins" directory.
- 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.
- Copy the "faces-console.jar" file from the Faces Console "lib" directory into the IDEA "plugins" directory.
- Restart IDEA.
c. Turning Off DTD Validation
- Startup IDEA if it is not already running.
- Find your JavaServer Faces config file in the Project, Structure or Web pane on the left hand side of the screen.
- Right click on the config file and select "Edit with Faces Console" from the menu.
- 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.
- To see an example of this, go to the Screen Shots Page.
NOTE: This plugin currently only works with IDEA 3.0 (build 668) or later.
- Startup IDEA if it is not already running.
- Go to the "Options" menu and then select "IDE Settings".
- Select the "Faces Console" button on the left.
- Set your desired validation preference.
a. Installing Faces Console Module
NetBeans 3.3 and Sun One Studio 4.0 and higherNetBeans 3.2.x and Forte for Java 3.0
- Start up NetBeans/SOS.
- Go to the "Tools" menu and select "Options".
- 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...".
- 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.
- Select the file "faces-console.jar" and then select "Open" in the file chooser.
- Restart NetBeans/SOS.
b. Turning Off DTD Validation
- Start up NetBeans/FFJ.
- Go to the "Tools" menu and select "Options".
- In the tree on the left hand side, right click on the "Modules" node and select "New" then select "Module...".
- 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.
- Select the file "faces-console.jar" and then select "Open" in the file chooser.
- Restart NetBeans/FFJ.
NetBeans 3.3 and Sun One Studio 4.0 and higherNetBeans 3.2.x and Forte for Java 3.0
- Startup Netbeans/SOS if it is not already running.
- Go to the "Tools" menu and then select "Options".
- Select the "Uncategorized" node and then the "Faces Console Settings" node in the tree on the left.
- 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.
- Startup Netbeans/FFJ if it is not already running.
- Go to the "Tools" menu and then select "Options".
- Select the "Faces Console Settings" node in the tree on the left.
- Set your desired validation preference.
To see an example of how to use this Module go to the Screen Shots Page.
a. Installing Faces Console Addinb. Using Faces Console inside JDeveloper
- Shutdown JDeveloper if it is currently running.
- Navigate to the directory where you have JDeveloper installed and then navigate into the "jdev" directory.
- Next, navigate into the "lib" directory and then into the "ext" directory.
- 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.
- Copy the "faces-console.jar" file from the Faces Console "lib" directory into the JDeveloper "ext" directory.
- Restart JDeveloper.
c. Turning Off DTD Validation
- Startup JDeveloper if it is not already running.
- Find your JavaServer Faces config file in the System Navigator pane on the left hand side of the screen.
- Right click on the config file and select "Faces Console Editor" from the menu.
- 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.
- To see an example of this, go to the Screen Shots Page.
- Startup JDeveloper if it is not already running.
- Go to the "Tools" menu and then select "Preferences".
- Select the "Faces Console" node in the tree on the left.
- Set your desired validation preference.