Creating a Faces JSP file
After you create a dynamic Web project, you can create the Faces JSP files that are the Web pages in your project.
To create a Faces JSP file:
- Click File > New > Faces JSP File. The New Faces JSP File wizard opens.
- Name the Faces JSP file and accept the default folder.
- In the Model field, choose one of the following options from the list:
- Basic: Generates a new blank Faces JSP file.
- Basic with client-side data caching: Generates a new blank Faces page with JSP and JSF data caching. This type of page reduces the number of round trips to the server.
- Portlet: Generates a new Faces JSP portlet file. Portlet options are available only if you have portal tools installed.
- Portlet with client-side data caching: Generates a new blank portlet file with JSP and JSF data caching. This type of page reduces the number of round trips to the server.
- Choose one of the following ways to finish creating the Faces JSP file:
- Click Finish if you want to create a blank Faces JSP file. The new file is added to the WebContent folder of your Web project and opens in Page Designer.
- Click Next if you want to specify additional options for the page, such as tag libraries that you want included in the generated page, options such as encoding, context types, document types, and style sheets that you want included in the generated page, method stubs you want generated, and any information you want added to the deployment descriptor. Click Finish when you are done adding options.
- Check Create from page template and click Next if you want to create the Faces JSP file using a page template. A new panel opens from which you can choose a page template. Click Finish to quickly create the new Faces JSP file based on the template.
- After the Faces JSP file opens in Page Designer, a Palette view opens next to the new Faces JSP page. (If you do not see the palette, chooseWindow > Show View > Basic > Palette).
Now, you can connect to a data source and add the Faces components that enable your users to create, read, update, and delete data.
To view several limitations on Faces Web applications, including one on Faces JSP welcome pages targeted to WAS v5.1, see Limitations: Faces JSP applications.
Related concepts
Faces components
Data access for Faces components
Client-side data caching using Faces Client Components
Related tasks
Creating a dynamic Web project
Creating Faces applications - overview
Creating a connection to a relational database
Generating Web pages from page templates
Viewing page code for Faces JSP files
Related reference
Faces components reference
Faces attributes reference
Faces media attributes reference