Book Image

Oracle ADF Faces Cookbook

By : Amr Ismail Gawish
Book Image

Oracle ADF Faces Cookbook

By: 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

Using ADF Faces Active Data Service (ADS)


ADS is a server-side push framework that allows you to provide real-time data updates for ADF Faces components. You can bind ADF Faces components to a data source, and ADS pushes data updates to the browser when it receives new data without requiring the browser client to request it.

You can typically use this when there is a change in the database or Java Message Service (JMS) to receive these changes once the ADS receives them.

In this recipe, we will create a random generator to generate random numbers between 0 and 300, and we will see these values pushed dynamically into the browser. There is no model for this project, and this is a separate application from previous recipes. So, you should grab the ADFFacesActiveData application from the Git repository directly.

How to do it…

To learn how to use ADS, we need to enable it first because it is disabled by default. Follow the ensuing steps to do this:

  1. Open the ADFFacesActiveData application.

  2. Open the...