# New JSF Pages from Entity Class Wizard: Generate JSF Pages and Classes

Use to generate JSP pages with JSF components based on entity classes in your web application. The generated JSP pages provide a web interface for the entity classes. For each entity class, the IDE creates four JSP pages enabling you to view, edit, create, and destroy entries in the data source. The IDE also creates controller and facade classes for each entity class and JSF utility classes.

To use JSF components in your web application, you must make sure that your project supports the JSF Framework.

In this page of the wizard you set the following:

Element | Description
--- | ---
Project | Specifies the project in which the JSF pages and classes will be located.
Location | Select the folder for source packages.
Session Bean Package | Select an existing package from the Package dropdown list or type the name of a new package for the facade classes.
JSF Classes Package | Select an existing package from the Package dropdown list or type the name of a new package for the JSF controller classes.
JSF Pages Folder | Specify the location of the JSF Pages folder. If no folder is specified the JSF pages are saved in a folder in the default Web Pages folder.
Localization Bundle Name | Type the name of the bundle properties file. The default name is `Bundle`.
Override Existing Files | When selected, the generated bundle properties file will replace the existing bundle properties file with the same name. If you want more than one bundle properties file you need to ensure that the name of each file is unique. An entry for the bundle properties file is automatically added to `faces-config.xml`.
Choose Templates | Select either JavaServer Faces or PrimeFaces in the drop-down list.
Customize Template | Enables you to modify the file templates that are used for generating the pages and bundle properties file. Right-click to view a list of the templates and select a template to open the template in the editor. To edit the template in the editor you need to close the wizard. The modified template will be used the next time you use the wizard.

Notes:

- You can also modify file templates by choosing Tools > Templates from the main menu and then selecting the template you want to edit from the list in the Template Manager.
- Be aware that templates are not project-specific and the IDE will also use the modified template for generating files in other projects.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.