Book Image

Oracle ADF Faces Cookbook

By : Amr Gawish, Amr Ismail Gawish
Book Image

Oracle ADF Faces Cookbook

By: Amr Gawish, Amr Ismail Gawish

Overview of this book

Table of Contents (18 chapters)
Oracle ADF Faces Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Adding events to your task flow through contextual events


Task flow parameters can be used to customize how the task flow behaves, but once the task flow is loaded, how can we interact with it?

Also, how can we communicate between two task flows, or between a task flow and its page container? The answer to all these questions is in contextual events. Contextual events help to solve these questions in an event-driven fashion.

The idea is that one task flow publishes an event and another task flow consumes this event and reacts on it. So, when this event occurs, the other task flow or page can change its behavior without the need to refresh or reload.

You may wonder why this is not mentioned as part of Chapter 7, Handling Events and Partial Page Rendering, since it's an event. The reason is that even though this is an event, it can be utilized greatly for reusable applications, so it's worth mentioning here.

In this recipe, we will first publish an event in the employees-crud-flow task flow when...