Copy jsf-portlet.jar from PortalServer7–base/lib directory to WEB-INF/lib directory of the application.
Add a new deployment descriptor for the portlet by creating a portlet.xml file.
The portlet.xml file must placed in the WEB-INF directory of the application.
In the portlet.xml file, set the portlet parameter com.sun.faces.portlet.INIT_VIEW to point to the first page of your portlet.
Modify the JSP pages as follows:
(Optional) Set the portlet parameter com.sun.faces.portlet.INIT_EDIT to point to the edit page of your portlet in the portlet.xml file to provide EDIT functionality for the JSF portlet.
(Optional) Set the portlet parameter com.sun.faces.portlet.INIT_HELP to point to the help page of your portlet in the portlet.xml file to provide HTLP functionality for the JSF portlet.
Deploy the WAR file using the psadmin deploy-portlet command. For example, type psadmin deploy-portlet -u amadmin -f passwordfile -v -d dn -p portalID -i instanceID warfile.
Create a new portlet channel and add it to the desired container.