First page Back Continue Last page Graphics

Creating a Page Fragment


Creating a Page Fragment

To create a page fragment, perform the following steps:

1. In the Application Navigator, select the project where you want to create and store page fragments. Then use the JSF Page Fragment item in New Gallery to open the Create JSF Page Fragment Wizard.

2. Enter a name for the page fragment file. By default, JDeveloper uses .jsff for the source file extension. You cannot overwrite the file extension in the wizard.

3. Accept the default directory for the page fragment, or choose a new location. By default, JDeveloper saves page fragments in the project’s /public_html in the file system. For example, you could change the default directory to /public_html/fragments.

4. If you want to create a page fragment based on a page template, select a template name from the drop-down list.

Another way to create a page fragment is to drag a view to a bounded task flow that uses page fragments, and then double-click that view to create the page fragment.

When finished, JDeveloper displays the page fragment file in the visual editor. You can drag components from the Component Palette onto the page fragment. You can use any ADF Faces or standard JSF component, but must not enclose the contents in f:view or af:document.