Oracle ADF Faces 10g: How to pass data between pages
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/
Related Information:
- Oracle ADF Faces 10g: Submitting a part of the page
Did you know ADF Faces...
- Oracle ADF Faces 10g: Accessibility and 508 Compliance
ADF Faces provides strong support...
- Data Validation and Cleansing – Technology, a New “Mouse Trap”
You lie in wait, looking...
- SSIS Tip – Read from Variables to Rows in Data Flow using Script Task
Reading from variables to augment...
- Staging Data with MySQL, CSVed, and XAMPP
The Task: Take and load,...
- Oracle XE Limitations (CPU, RAM, Data Limits)
I was trying to make...
- JDeveloper 11g Patch Set 3 (PS3) 11.1.1.4.0 Download for Windows, Linux, etc.
Oracle has released JDeveloper 11g...
- Using Oracle ADF EJB PersistObject
While demoing out some ADF...

Recent Comments