Brief introduction
JavaServer Faces is a new Java technology that provides a standard way to build applications based on thin client/html using Java. Although the full and enhanced support for JSF development is available in JDeveloper 10g in subsequent 10g versions, it is possible to perform efficient JSF 1.0 development in JDeveloper 10g. This document describes how to install and use JavaServer Faces 1.0 in JDeveloper 10g.
How to install the JSF library into JDeveloper create a JSF library and register the JSF JSP tag library to download the JSF 1.0 reference implementation from java.sun.com. Unzip the file to a separate directory, such as D:JSF. This directory will contain the following subdirectories: Docs, Javadocs, LIB, samples, and Tlddocs. The Lib directory will contain the jar files and TLD (tag library descriptor) files that are necessary for JDeveloper to use JSF.
Create a JDeveloper "JSF" library to manage the required JSF jar files in JDeveloper.
Select Tools-> Manage Libraries from the main menu. Select the Libraries tab. Select the System Libraries node and click New. Name the Library "JSF." For Class Path: Click Edit ... and add all the jar files located under the Lib directory ("D:jsflib") of the JSF package: Jsf-api.jar, Jsf-impl.jar, and Commons*.jar.
Now register the JSF (JSP) tag Library in JDeveloper and add it to Component Palette.
Also, select Tools-> Manage libraries from the menu. This time, select the JSP Tag Libraries tab and click New. Add the JSF Core tag library by specifying the following:
TLD file: d:jsflibjsf_core.tld (Use the Browse button to locate the JSF Core Tag Library descriptor: TLD. Library: JSF (click the Browse button and select the new JSF library.) )
Uri:http://java.sun.com/jsf/core (should be automatically populated) prefix: F leave the "Execute Tags in JSP Visual Editor" check box unchecked, and then click OK.
In the dialog box that asks if you want to add the tag library to the Component Palette, answer yes. Name the Palette Page: "JSF Core." (You can edit this combo box.) )