You can access pageFlow scope from within any Java code in your application. Remember to clear the scope once you are finished.
Note: If your application uses ADF Controller, then you do not have to manually clear the scope.
To use pageFlowScope in Java code:
To get a reference to the pageFlowScope scope, use the org.apache.myfaces.trinidad.context.RequestContext. getPageFlowScope() method.
For example, to retrieve an object from the pageFlowScope scope, you might use the following Java code:
import java.util.Map;
import org.apache.myfaces.trinidad.context.RequestContext;
Map pageFlowScope = RequestContext.getCurrentInstance().getPageFlowScope();
Object myObject = pageFlowScope.get("myObjectName");
To clear the pageFlowScope scope, access it and then manually clear it.
For example, you might use the following Java code to clear the scope:
RequestContext afContext = RequestContext.getCurrentInstance();
afContext.getPageFlowScope().clear();
Posted Date:- 2021-09-27 23:14:30
What is the difference between trinidad.config and trinidad.skins?
How to pass ''af:selectOneChoice'' value to other page?
How to Use the pageFlowScope Scope Within Java Code
Difference between mapping and wrangling data flows?
What are the different types/categories of Taskflows ?
Where is that we write business rules/validations in ADF and why?
Can an entity object be based on two Database Objects(tables/views) or two Webservices ?
Can Service Methods return Complex Data types?
What are the different kinds of Bean Scopesin JSF?
What are various components in ADF?
Explain Data Control Palette hierarchy
Advantage of Task Flow Over JSF flow?
What is the return type of Service Methods?
Can an entity object be based on two Database Objects(tables/views) or two Webservices?
What do you mean by variables in the azure data factory ?
What is the main advantage of the AutoResolveIntegrationRuntime ?
What are the different types of integration runtime ?
What is Bundled Exception Mode in ADF?
Can we change DB connection for any particular AM?
What is the purpose of adfc-config.xml?
What is the difference between databindings.cpx and datacontrol.dcx?
What is policy store and identity store in OID?
Can you make View Link bidirectional?
Explain the Invoke application in the life-cycle phase of JSF.
Explain the Update model values in the life-cycle phase of JSF.
Write Code To Access The Current Row And Or The View Object Inside Your Bean.?
What Is The Purpose Of Jazn-data.xml?
In Case Of Java Control Or Ejb Does It Have A Datacontrol.dcx File?
What Is Meta Data Commit During Life Cycle Phase Of Adf What Happens Here?
What Is Inter-portlet Communication?
What Is The Life Cycle Of Jsf?
What Are Valuators’ And Converters?
How Do You Define Pagination In Adf?
What Is The Difference Between Visible Property And Render Property?
What Is The Difference Between An Action And An Action Listener?
What Are The Different Types Of Bindings In Adf?
What Is Binding Context And Binding Container?
What Is The Difference Between Trinidad.config And Trinidad.skins?
What Is The Difference Between Databindings.cpx And Datacontrol.dcx?
What Is Policy Store And Identity Store In Oid?
What Are Data Controls? What Types Of Data Controls Are You Aware Of?