O'Reilly logo

Liferay Portal 5.2 Systems Development by Jonas Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Extending JSR-286 portlets

The JSR-286 is made extensible so that Liferay portal can add features and functionalities in the frameworks on top of JSR-286 in a noninvasive and container-independent manner. Let's take a deeper look at the features for extending the JSR-286.

Using portlet filters

Filter functionality allows us to plug filters around any life cycle call of the portlet. PortletFilter is the base interface for all portlet filters such as ActionFilter, EventFilter, RenderFilter, and ResourceFilter. It provides the init and destroy life cycle methods for putting a portlet filter into and out of service as follows:

void init(FilterConfig filterConfig);
void destroy();

All portlet filters such as ActionFilter, EventFilter, RenderFilter

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required