Setting page code file preferences for JSF pages

When you create a Facelet or Faces JSP page, a corresponding file is created that contains its Java™ page code. The page code files includes such information as the Java classes being referenced, data you're referencing when you drag records to the page, binding information, and any code scripted in the Quick Edit view for button actions or value-changed events.

About this task

By default, a page code file is generated for each JSF page, but you can change this at any time in the Preferences settings. You also have the options to delete page code file information when you delete a JSF page and to generate fields and getters in the page code file for all Faces components.
Note: A page code file is required if you want to add a relational record or relational record list to a JSF page. If you have page code suppression turned on when adding a relational record or relational record list, you are prompted to allow a page code file to be generated.

Procedure

  1. Before creating a new JSF page, click Window > Preferences .
  2. Click Web > JavaServer Faces Tools > Page Code.
  3. Select or clear the following:
    • Suppress Page Code file generation -This option prevents the creation of a page code file for each JSF page that you create.
    • When a Faces Page is deleted also delete its associated Page Code file - This option allows you to remove or retain page code file information when deleting JSF files.
    • Generate fields and getters into Page Code file for Faces components inserted into page - This option allows you to create fields and getters generated in page code for each component.

Feedback