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 scrollComponentIntoViewBehavior tag


The scrollComponentIntoViewBehavior tag is an interesting client behavior tag that can be used to enable the user to jump to a particular component on a page similar to an anchor in HTML.

In this recipe, we will use scrollComponentIntoViewBehavior to jump to the submit button at the end of the page. You can refer to the last recipe, or you can grab this project's recipe by cloning the ADFFacesScrollComponentTag application from the Git repository.

This is a very good use case since forms can grow big, and providing the end users with the option to jump to the Submit button directly can be a time saver.

Note

Note that this is a client-side component, so there are no actions submitted on the server side, which means no server round trips.

How to do it…

To learn how to use the scrollComponentIntoView tag, follow the ensuing steps:

  1. Open the events.jsf page.

  2. Drag a button inside the panel form layout just under the Phone Number input text.

  3. Change the Text...