Book Image

Liferay Portal Systems Development

Book Image

Liferay Portal Systems Development

Overview of this book

Liferay portal is one of the most mature portal frameworks in the market, offering many key business benefits that involve personalization, customization, content management systems, web content management, collaboration, social networking and workflow. If you are a Java developer who wants to build custom web sites and WAP sites using Liferay portal, this book is all you need. Liferay Portal Systems Development shows Java developers how to use Liferay kernel 6.1 and above as a framework to develop custom web and WAP systems which will help you to maximize your productivity gains. Get ready for a rich, friendly, intuitive, and collaborative end-user experience! The clear, practical examples in the sample application that runs throughout this book will enable professional Java developers to build custom web sites, portals, and mobile applications using Liferay portal as a framework. You will learn how to make all of your organization's data and web content easily accessible by customizing Liferay into a single point of access. The book will also show you how to improve your inter-company communication by enhancing your web and WAP sites to easily share content with colleagues.
Table of Contents (17 chapters)
Liferay Portal Systems Development
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface

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. In the portlet.xml file, the portlet-class element contains the fully-qualified class name of the portlet. Thus, to extend the MVC portlet bridge, the portlet-class element could be specified as follows:

<portlet-class>com.liferay...