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.1 without a hitch.
To upgrade a Liferay MVC Portlet, adapt your code to Liferay DXP 7.1’s API using the Liferay Upgrade Planner. When you ran the planner’s Fix Upgrade Problems step, many of the existing issues were autocorrected or flagged. For any remaining errors, consult the Resolving a Plugin’s Dependencies article.
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 you upgrade 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.1 instance. Have fun showing off your upgraded portlet!
Related Topics
Migrating Plugins SDK Projects to Workspace and Gradle