How to use JSF in JDeveloper 10g

Source: Internet
Author: User
Tags tld

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.) )

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.