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 the target tag to execute PPR


Using PPR makes it really easy to render parts of your page on demand; however, in some use cases, it can become very hard to manage the PPR, especially with validations around.

For example, if you have a selectOneChoice component that refers to a lookup table, you may want to provide the end user with a create button to create a new row in the lookup table, if it doesn't exist. Now that is a great feature, but if selectOneChoice is the required field, then the create button will not be triggered unless the user selects a value of selectOneChoice first.

Setting the immediate attribute to true will not solve the problem either, because it'll not change or execute the update model phase, which may be required.

ADF 12c provides a great solution to this problem by providing the Target tag in which can be used to control the life cycle execution and rendering.

In this recipe, we have a very simple use case to be able to click on First, Previous, Next, or Last buttons...