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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ADF Menu navigation issue in the migrated 12.2.1.4.0 application

Rohit ShirsathAug 23 2024

Hi ADF experts,

We have migrated a set of ADF fusion applications from 11.1.1.5.0 to 12.2.1.4.0. We followed the migration path suggested by Oracle i.e. 11.1.1.5.0 > 11.1.1.9.0 > 12.2.1.4.0.

There is a shared template jspx file which has a menu navigation as below.

RichMenuBar > RichMenu > RichGoMenuItem

RichGoMenuItem.setDestination("URLs of the pages in the fusion applications")

Eg. menuItem1.setDestination("http://127.0.0.1:7101/MenuNavigationSample-ViewController-context-root/faces/Menu.jspx");

The menus are built programmatically based on the user roles.

Eg. Page 1 has a Bounded taskflow which has three views A, B, C. On first visit user does some DML on view A and navigates to view B or C. After that he clicks on a menu containing Page 2. Page 2 is rendered. He does some activity there. Now the user is navigating back to Page 1 by clicking on its menu.

Behavior in 11g: Page 1 is refreshed, BTF refreshes itself and the default activity i.e. View A is rendered. All old values are discarded. Looks like ADF controller recognizes it as a new request.

Issue/Behavior in 12c: Page 1 retains its state i.e. the values which were cached during the last visit and View B or C is rendered instead a of View A.

How can I achieve the same functionality as 11g in 12c? I tried to change the state saving parameters in web.xml and used client/server listeners to restart the taskflows but without any luck. I think this has to do something with weblogic's state management.

Also noticed the URL's in 11g are appended with parameters - _afrLoop=236618952252700&_afrWindowMode=0&_adf.ctrl-state=qelxk1itr_17

On every menu click the afrLoop and _adf.ctrl-state changes its values which helps the page to get back to its initial state.

Any help will be much appreciated!

Comments
Post Details
Added on Aug 23 2024
9 comments
170 views