O'Reilly logo

Liferay Portal Systems Development by Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Advanced MVC portlet

We have discussed the basic MVC portlet in the previous section. In this section, we will discuss the advanced MVC portlet features, such as portlet bridge extension, bringing portlets into the Control Panel, portlet configuration and preferences, redirecting, more actions, and interacting with the database.

Portlet bridge extension

As mentioned earlier, MVCPortlet extends LiferayPortlet and LiferayPortlet extends GenericPortlet. MVCPortlet is useful, since it specifies a set of JSP views such as about-jsp, config-jsp, view-jsp, and so on. In the real world, MVCPortlet may not be sufficient. Thus you should extend it.

For example, for the knowledge base admin, MVCPortlet got extended as com.liferay.knowledgebase.admin.portlet.AdminPortlet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required