Book Image

Oracle ADF Real World Developer's Guide

By : Jobinesh Purushothaman
Book Image

Oracle ADF Real World Developer's Guide

By: Jobinesh Purushothaman

Overview of this book

Oracle ADF in combination with JDeveloper IDE offers visual and declarative approaches to enterprise application development. This book will teach you to build scalable rich enterprise applications using the ADF Framework, with the help of many real world examples. Oracle ADF is a powerful application framework for building next generation enterprise applications. The book is a practical guide for the ADF framework and discusses how to use Oracle ADF for building rich enterprise applications. "Oracle ADF Real World Developer's Guide" discusses ADF framework in detail. This book contains a lot of real life examples which will help developers to design and develop successful enterprise applications. This book starts off by introducing the development environment and JDeveloper design time features. As you read forward, you will learn to build a full stack enterprise application using ADF. You will learn how to build business services using ADF, enable validation for the data model, declaratively build user interfaces for business service and enable security across application layers.
Table of Contents (20 chapters)
Oracle ADF Real World Developer's Guide
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Adding custom phase listeners


ADF framework allows you to plug in your custom phase listener implementations for each phase in a page lifecycle. This feature is useful if you want to perform some resource cleanup activities or to enable some security check during the page lifecycle. The custom phase listeners can be registered either for an application or for individual pages.

  • To register an application level phase listener, create a class that implements the oracle.adf.controller.v2.lifecycle.PagePhaseListener interface. Then register the custom phase listener in adf-settings.xml, located under the META-INF folder. Create a new file if it is not there by default.

  • If you want to register the custom PagePhaseListener for a page, specify the custom PagePhaseListener implementation as ControllerClass in the page definition file.

  • If you want more ADF-flavored phase listeners for a page that provides more granular control over ADF phase events, build a class extending oracle.adf.controller.v2.lifecycle...