Generating JSF Pages

Before generation, make sure that you have attached the Hibernate Extension file to the model, and checked the model for errors.

  1. Java CodeSelect Language > Generate Java Code.
  2. Specify a target directory.
  3. Define generation options.
  4. Click OK.

    The generation produces the following files:

    • Persistent files (persistent classes, DAO, ...)

    • Eclipse and Eclipse WTP project artifacts

    • A home page

    • JSF pages for persistent classes:
      • A find page for searching objects

      • A list page for displaying find results

      • A create page for creating new objects

      • An edit page for updating objects

    • Managed beans

    • Page flows (face configuration files)