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. Data Validation and Cleansing - Technology, a New “Mouse Trap”
    You lie in wait, looking for your prey, it approaches, and looks around. You spring the trap and find the...
  4. Staging Data with MySQL, CSVed, and XAMPP
    The Task: Take and load, using MySQL, a flatfile of over 450 colums and over 145,000 rows of data and...
  5. JDeveloper 11g Download
    If you haven’t already, download Oracle JDeveloper 11g for free using the links below or directly from the JDeveloper 11g...
  6. 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....
  7. 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...
  8. Copy Table Columns and Data
    As you may know, in Oracle the syntax from creating a table that is the same as another is: 1...

Leave a Reply


Archives

Recent Comments

  • Kavitha Muniraj said: Hi, Could you please send a script which checks the status of forms and reports of oracle...
  • Siddharth said: Hey thanks a lot !! Have been lookin all over for this :) My PC may not be able t handle FlashBuilder...
  • Cyrex said: Hey man why I cant install Apex 4? is there anyone can help me.,?
  • sharanabasava said: ALTER TABLE [my_table_name] RENAME COLUMN [current_column_name] TO [new_column_name]; Sir,I...
  • Huub Vankan said: Thanks for this easy solution. Indeed strange that is does not work in the (x86) folder….

Calendar

July 2010
M T W T F S S
« Jun    
 1234
567891011
12131415161718
19202122232425
262728293031  

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