Hi,
We have very old ADF project which was built using 11.1.1.6. I am trying to migrate this to ADF 12.2.1.3 version.
But i am getting Below error.
Error(676,32): method getPageFlowScopeMap in class oracle.adfinternal.controller.state.ViewPortContextImpl cannot be applied to given types;; required: oracle.adfinternal.controller.state.AdfcContext; found: no arguments; reason: actual and formal argument lists differ in length
Code is as below:
import oracle.adfinternal.controller.state.RootViewPortContextImpl;
public Object getParentTFPageFlowBean(String beanName) {
ControllerContext conn = ControllerContext.getInstance();
RootViewPortContextImpl rootViewPort =
(RootViewPortContextImpl)conn.getCurrentRootViewPort();
Object bean = rootViewPort.getPageFlowScopeMap().get(beanName);
return bean;
}
public Object getPageFlowScopeValue(String key){
if(isIsFromAnotherBean()){
ControllerContext conn = ControllerContext.getInstance();
RootViewPortContextImpl rootViewPort =
(RootViewPortContextImpl)conn.getCurrentRootViewPort();
return rootViewPort.getPageFlowScopeMap().get(key);
}else{
return ADFUtils.getPageFlowValue(key);
}
}
public void putPageFlowScopeValue(String key, Object value){
if(isIsFromAnotherBean()){
ControllerContext conn = ControllerContext.getInstance();
RootViewPortContextImpl rootViewPort =
(RootViewPortContextImpl)conn.getCurrentRootViewPort();
rootViewPort.getPageFlowScopeMap().put(key, value);
}else{
ADFUtils.setPageFlowValue(key, value);
}
}
Could you please help on this. As this is compilation error and i am not able to forward myself.