Creating JavaServer Faces 2.x portlet projects on WebSphere® Application Server Liberty Profile

You can create and maintain resources for portlet applications by using the Java™ Specification Request (JSR 168 and JSR 286) portlet API in a portlet project. Portlet projects can be added to a new or existing enterprise application project.

Before you begin

Install WebSphere® Application Server Liberty Profile and required add-ons.

About this task

Use the New Portlet Project wizard to create faces portlet projects.

Procedure

  1. Click File > New > Project > Portlet Project. In Confirm Enablement, click OK.
  2. In the New Portlet Project wizard, in the Project name field, type a project name.
  3. In the Target runtime list, select a target runtime environment, such as WebSphere Application Server Liberty Profile.
  4. Beside the Configuration: JSR286 Faces field, click Modify, and then:
    1. In the Portlet API field, select JSR 286 Portlet.
    2. In the Portlet type field, select Faces Portlet.
    Click OK.
  5. In the Portlet Project page, click Finish. A default facelet file named <portlet-name>View.xhtml is created and opened by default in the Editor.

Feedback