Portlet 3.0 API Opt In
A portlet must specify version 3.0 to “opt in” to the Portlet 3.0 API. The 3.0 Portlet API version can be specified in the following ways.
Standard Portlet @PortletApplication
Annotation
Standard portlets need only specify the @PortletApplication
annotation.
Liferay MVC Portlet @Component
Annotation
Declarative Services portlets, such as MVCPortlet
, can specify version 3.0 in their @Component
annotation.
portlet.xml
Descriptor
All portlets can specify version 3.0 in their portlet.xml
descriptor.