Upgrading a Liferay MVC Portlet

Upgrading Portlets

Step 2 of 6

Liferay’s MVC Portlet framework is used extensively in Liferay DXP’s portlets and is a popular choice for 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 be upgraded to Liferay DXP 7.2 without a hitch.

Upgrading a Liferay MVC Portlet involves these steps:

  1. Adapt the portlet to Liferay DXP 7.2’s API using the Liferay Upgrade Planner. When running the planner’s Fix Upgrade Problems step, many of the existing issues are autocorrected. For remaining issues, the planner identifies code affected by the new API and ways to adapt it.

  2. Resolve its dependencies

  3. Deploy it

After deploying the upgraded portlet, 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.2 instance. Have fun showing off your upgraded portlet!

« Upgrading a GenericPortletUpgrading a Liferay JSF Portlet »
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0