Upgrading a Liferay MVC Portlet

Liferay’s MVC Portlet framework is used extensively in Liferay’s portlets and is a popular choice for Liferay Portal 6.2 portlet developers. The MVCPortlet class is a lightweight extension of javax.portlet.GenericPortlet. Its init method saves you from writing a lot of boilerplate code. MVC portlets can upgraded to Liferay DXP 7.0 without a hitch.

Upgrading a Liferay MVC Portlet involves these steps:

  1. Adapt the code to Liferay DXP 7.0’s API

  2. Resolve dependencies

Liferay’s Upgrade Planner identifies code affected by the new API, explains the API changes and how to adapt to them, and in many cases, provides options for adapting the code automatically.

After upgrading your portlet, deploy it the same way you always do.

The server prints messages that indicate the following portlet status:

  • WAR processing
  • WAB startup
  • Availability to users

You’ve upgraded and deployed your Liferay MVC Portlet on your Liferay DXP 7.0 instance. Have fun showing off your upgraded portlet!

Related Topics

Migrating Plugins SDK Projects to Workspace and Gradle

Using Dependency Management Tools

Using the WAB Generator

Migrating Data Upgrade Processes

« Upgrading a Servlet-based PortletUpgrading Portlets that use Service Builder »
Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0