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 the new DXP version without a hitch.
Upgrading a Liferay MVC Portlet involves these steps:
Adapt the portlet to the new DXP version’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.
After deploying the upgraded portlet, the server prints messages that indicate the following portlet status:
You’ve upgraded and deployed your Liferay MVC Portlet on your the new DXP version instance. Have fun showing off your upgraded portlet!