Liferay portal is designed to deploy portlets that adhere to the Portlet API (JSR-286). Many useful portlets are bundled with the portal, for example, Image Gallery, Document Library, Journal, Calendar, Message Boards, Manage Pages, Communities, and so on. Before customizing these portlets in sync with the Liferay portal, we are going to work with the JSR-286 portlets.
As mentioned earlier, a portlet is managed through a life cycle that defines how it is loaded, instantiated, and initialized, how it handles requests from clients, and how it is taken out of service. The life cycle of a portlet is expressed through the
init, processAction, render, and
destroy methods of the
Portlet interface, ...