Oracle ADF Faces 10g: How to pass data between pages

By M&S Consulting (Reid) on Apr 16th, 2009
Filed Under Technical Tips // Tags: , ,

Oracle ADF Faces 10g: How to pass data between pages

Do you have the need to pass data between pages, e.g. for a new customer signup page flow that spans multiple pages?

In ADF Faces, when you have a form that spans multiple pages, you have options on how to pass and maintain the data between pages, e.g. cache the data in the middle tier, re-write the data into hidden fields on the page, or store the state in session.

Caching and storing data in session have the drawback of not being back-button or new-window safe. Often frameworks have a mechanism to store state in hidden fields on the page and rewrite the state into the next page’s hidden fields; however, ADF Faces does not have this mechanism.

Instead, ADF Faces ships with a cross between hidden fields and session state management where a token (i.e. a unique id) is written to a hidden field on the page and the token is the key to a value in session; this is referred to as “Process Scope”.

Each page has its own copy of the state. If the user clicks the back button to go to a previous page, they will be operating on the same state of the object in session as when that page was originally rendered.

Note—ADF Faces will store up to a set number of pages’ state in session. This value is configurable in the adf-faces.xml file.

More information can be found here:

  • http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3?topic=sf_ascopes_html
  • http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/devguide/communicatingBetweenPages.html
  • http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps%7Cadfcreate%7Caf_apageflowscope~html/
  • http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps%7Cadfcreate%7Caf_asetactionlistenerandprocess%7Ehtml/
  • http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps%7Cadfcreate%7Caf_adialogparameters%7Ehtml/
Bookmark and Share

Related Information:

  1. Oracle ADF Faces 10g: Accessibility and 508 Compliance ADF Faces provides strong support for Accessibility and 508 Compliance. Most ADF Faces components have attributes that will translate to...
  2. Oracle ADF Faces 10g: Submitting a part of the page Did you know ADF Faces allows you to submit only part of a page? This can be useful when you...
  3. Oracle APEX Tutorial 2 - Parameterized Report Part 1 - Video Training This Tutorial is a guided walkthrough of section 3 of the Oracle APEX Advanced Tutorials....
  4. APEX 3.2 Tutorial Preparation and OEHR Sample Data - Video Walkthrough This tutorial video and article is meant to help you setup your APEX installation so you can proceed through the...
  5. Preventing sensitive information from populating form field history: cross-browser solution

    When you have users submitting sensitive information on your website while on a public computer, how can you ensure that...

  6. Oracle APEX Main Components One of the main functions of APEX is to be able to easily build applications and perform basic database administration...
  7. MySQL and SQL Server - Oracle CONNECT BY PRIOR for Recursive, Hierarchical Data Recursive queries are something I have used many, many times over the years to build dynamic, n-tiered hierarchies. Oracle’s CONNECT...
  8. Oracle APEX Tutorial 3 - Drilldown Report Part 2- Video Training This tutorial covers section 4 of the Oracle APEX Advanced Tutorials, Creating a Drilldown Report...

Leave a Reply


Archives

Recent Comments

  • SaintClair said: Thanks a million for this priceless material. May God richly bless you!
  • ashok.aggarwal said: Thank you for your comment, Stuart. I’m glad this helped you.
  • Stuart said: I’d really like to thank you for your post. It was really that simple.
  • ashok.aggarwal said: Your specific question is not very clear, however, in the context of implementing a LIKE...
  • Jonas said: Finally in print that a user is required to show the email option. Thanks.

Calendar

March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

Featured Testimonial

"M&S has taken 'partnership' to a new level. They are not only a deeply skilled service provider, the M&S team is actually a mission critical component to our operations, taking on new initiatives as well as maintaining custom, open source, and COTS solutions."

CEO, MedPivot

Free SQL Service