Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jdeveloper 12.2.1.3 Migration navigation issues

2646785Feb 13 2018 — edited Feb 14 2018

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.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2018
Added on Feb 13 2018
3 comments
302 views