Creating a New Application with JSF Support
See Also
You can create a new JavaServer Faces application using the New Web Application
wizard. JSF support is determined based on the Java EE version you specify in
the wizard.
Java EE Version |
JSF Version |
6 |
2.0 |
5 |
1.2 |
When you create a new web application with JSF support, an empty project template
is generated that contains various JSF-specific artifacts. 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 create a new web application with JSF support:
- Choose File > New Project (Ctrl-Shift-N).
- From the Java Web category, select
Web Application.
- Continue with the wizard until you reach the Frameworks panel. Select JavaServer Faces.
After selecting JavaServer Faces, various configuration options become available to you.
You can determine how your project has access to JSF libraries. Click the Configuration
tab to specify how the Faces servlet will be registered in the project's deployment
descriptor, or change the project's default page language.
- Click Finish. The new project is generated and opens in the IDE.
After you create a web application with JSF support, you can begin using JSF-specific
wizards for your project.
- See Also
- About JavaServer Faces Framework Support
- Adding JavaServer Faces Framework Support to an Existing Application
- About Web Application Frameworks
Legal Notices