Adding JSF Support to an Existing Application
See Also
If you want to add JSF support to an existing Java web application, you can do
so from your project's Properties window.
The "support" available to you is determined by the JSF version your
project uses. For Java EE 6, JSF 2.0 is the default JSF version; projects relying
on Java EE 5 (and previous versions) use JSF 1.2.
JSF 2.0 support is defined by the following:
- Facelets files (
.xhtml
) are the default page language
- JSF 2.0 libraries are added to the project's classpath
- The Faces servlet and servlet mapping are added to the project's deployment
descriptor
For JSF 1.2, support constitutes the following:
- JSP files (
.jsp
) are the default page language
- JSF 1.2 libraries are added to the project's classpath
- The Faces servlet and servlet mapping are added to the project's deployment
descriptor
- A Faces configuration file (
faces-config.xml
) is included in
the project
To add JSF support to an existing web application:
- In the Projects window, right-click a standard web project's node and
choose Properties.
- Click the Frameworks category.
- Click the Add button, then from the list of available frameworks,
select JavaServer Faces.
- Click OK to confirm your selection and exit the dialog box, then click
OK to exit the Project Properties window.
- See Also
- About JavaServer Faces Framework Support
- Creating a New Application with JSF Support
- About Web Application Frameworks
Legal Notices