Generating JSF Pages from an Entity Class

See Also

An entity class is a class that uses the Java Persistence API to access a data source. In a web application project, you can generate a series of JSP pages that use the JSF framework and the entity classes to provide read and write access to the entries in the database. The JSP pages use JSF components.

To generate JSF pages from an entity class:

  1. Choose File > New (Ctrl-N) from the main menu.
  2. From the Persistence category, select JSF Pages from Entity Class and click Next. The wizard displays all of the entity classes in the project.
  3. Add all of the entity classes for which you want to generate JSF pages to the Selected Entity Classes list and click Next.
  4. (Optional) Specify a folder in which to place the JSF pages.
  5. Specify a package name for the generated Java classes and click Finish.

The IDE generates the following artifacts for a CRUD application:

See Also
About Web Application Frameworks
Adding JSF Support to an Existing Application
About CRUD Applications
Creating an Entity Class
Generating Persistent Entity Classes from a Database

Legal Notices