Following Get/Set Java methods can be used within a Managed Bean:
public Object getPageFlowScopeValue(String name) {
ADFContext adfCtx = ADFContext.getCurrent();
Map pageFlowScope = adfCtx.getPageFlowScope();
Object val = pageFlowScope.get(name); //Name = PageFlowScope value name
if (val == null) { //Avoid null pointer exception
return null;
} else {
return val;
}
}
public Object getPageFlowScopeValue(String name) {
ADFContext adfCtx = ADFContext.getCurrent();
Map pageFlowScope = adfCtx.getPageFlowScope();
Object val = pageFlowScope.get(name); //Name = PageFlowScope value name
if (val == null) { //Avoid null pointer exception
return null;
} else {
return val;
}
}
Hey!
ReplyDeleteLooks you had a copy-paste typo in the above post :)
the setPageFlowScope also shows the code for getPageFlowScope. It should be something similar to this.
ADFContext adfCtx = ADFContext.getCurrent();
Map pageFlowScope = adfCtx.getPageFlowScope();
pageFlowScope.put(name, value);
I think you are right.
ReplyDelete