Creating JSF Pages

See Also

Use the JSF Page wizard to create Facelets and JSP pages for your project.

To create a new JSF page:

  1. In the Projects window, right-click your project node and choose New > JSF Page. The File wizard opens.

    (If JSF Page is not listed, choose Other. Then select the JavaServer Faces category and JSF Page file type. Click Next.)
  2. In the File Name field, type in a name for the file.
  3. In Location, specify the top-level location for the file. ('Web Pages' is the default option, and places the file in the project's web root.
  4. In Folder, specify a folder within the selected location, if you require. The Created File field provides a read-only path to the new location for the file.
  5. Under Options, indicate the page type you want to create. (Facelets is the default option for Java EE 6 projects.) If you select the JSP option, you can also specify whether you want to create a JSP fragment.
  6. Click Finish. The new file is generated and opens in the editor.
See Also
Creating a New Application with JSF Support
About JavaServer Faces Framework Support
About Web Application Frameworks

Legal Notices