Creating Portlet Facelet pages

After creating a portlet project that is enabled for JavaServer Faces 2.0, you can create Portlet Facelet pages.

Before you begin

Before you create a Portlet Facelet page, you must create a JSF 2.0 portlet project. For more information, see Creating JavaServer Faces 2.0 portlet and projects.

Procedure

To create Portlet Facelet page:

  1. Right-click the JSF 2.0 portlet project and click New > Web Page.
  2. In the New Web Page wizard, select Portlet Facelet.
  3. Enter the name of the Portlet Facelet.
  4. Click Finish.

Results

Portlet Facelet (XHTML file) is created in the JSF 2.0 portlet project. After the XHTML file opens in the editor, the Standard Faces Components drawer opens in the Palette view next to the new page. The JSF tags are available in the Palette view. If you do not see the palette, click Window > Show View > Basic > Palette. The Palette contains the drawers that have all of the UI components that you can drag to the XHTML file.

Feedback