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.

How to get ViewPort for a Region

Rudy MeyerMay 16 2013 — edited May 17 2013
Hello,

Looking for help with the following situation: I have a page with a vertical PanelSplitter. There is a tree on the left (first) and PanelStretchLayout on the right (second). Within the PSL.center I have a switcher with Regions defined for different task flows. The tree has a selectionListener that shows the appropriate Region based on the VO selected. This is based on demo #50 How-to create and synchronize edit forms for tree node entries (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples). This all works well.

I am trying to implement a dirty check very similar to what is described here (http://jjzheng.blogspot.com/2011/03/using-popup-to-confront-user-to.html).

I am planning on putting code within the TreeSelectionListener to check if the current region is dirty. What is the proper way to access the ViewPort of the current Region in order to perform the viewPort.getTaskFlowContext().isDataDirty() check?

Using 11.1.1.6
Thank you
Rudy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2013
Added on May 16 2013
3 comments
530 views