3.11 Create Custom Pages

JDeveloper can be used to create custom pages that can be included in the application. When creating custom pages in JDeveloper, JDeveloper must be launched in the Default role.

When creating the page (or dropping a view activity onto a task flow), it can be created either as a JSF JSP or as a JSF JSP fragment. JSF fragments provide a simple way to create reusable page content in a project, and are used for task flows as regions on a page. When a JSF page fragment is modified, the JSF pages that consume the page fragment are automatically updated.

After extending the application with custom pages, it is required to make sure that security for the new pages are implemented appropriately and that the new pages are deployed so that they are accessible from the application.

Task: Create a Custom Page

In JDeveloper, pages can be created either by double-clicking a view activity in a task flow or by using the New Gallery. In the Application Navigator, right-click the project to which the page has to be added to, and choose New. Then in the New Gallery, expand Web Tier, and click JSF/Facelets. Then select either Page or ADF Page Fragment, and click OK.

Task: Add a Custom Page to a Task Flow

If the page is created by double-clicking a view activity in a task flow, it is already added to the task flow. If it is created using the New Gallery, it can be added to a task flow by dragging the page from the Application Navigator and dropping it in the task flow diagram editor. Then connect the page using a control flow.