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

Chapter 4. Ext Plugin and Hooks

Ext plugin is a powerful tool to extend the Liferay portal core. There are almost no limits to what can be customized. Thus, the Ext plugin has to be used carefully. Ext plugin is designed to be used only in special scenarios where all other plugin types such as portlets, hooks, themes, layout templates, and webs cannot meet the needs.

Hooks can fill a wide variety of common needs for overriding the portal core functionality. Whenever possible, hooks should be used in place of the Ext plugin, as hooks are hot deployable and more forward compatible. There are common scenarios which require the use of a hook, for example, performing custom actions on portal startup or user login, overwriting or extending portal JSPs, modifying portal properties, replacing a portal service with custom implementation, modifying indexer post processors, and updating struts actions, servlet filters, and servlet filters mappings.

This chapter will first introduce the Ext plugin...