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 partial triggers


In order to provide a dynamic and responsive web application and make changes from the server side to the client side, a technique emerged back in 2007 called Ajax that is still being used up to this moment.

In ADF Faces, Ajax is implemented under a different umbrella called PPR. During PPR, the JSF page's life cycle is run only for certain components in the page and doesn't submit the whole page. The best part about it is that you can use PPR declaratively without the need for a single line of code.

In this recipe, we will create two cascading selectOneChoice options, which represent regions and countries respectively; when you change the region, the countries get filtered based on the region selected.

The model of this application has been created for you. You can open it by cloning the ADFFacesPartialTriggers application from the Git repository.

How to do it…

To learn how to use PPR, follow the ensuing steps:

  1. Open the ADFFacesPartialTriggers application.

  2. Double-click on...