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!

Using AdfPage.PAGE.findComponent to find a popUp in a region

Paul (MITsa)Sep 16 2009 — edited Sep 17 2009
Adf11g

Hello

I have a task flow in a region on a page - the region is named regionTrans.
The main page in the taskflow has a popUp in the jsp:root - the popUp is named popTrans
As I need to do a CreateInsert() before displaying the popUp I'm displaying the popUp using the following code :
    public static void showPopup(String popupId) {
       FacesContext context = getFacesContext();
       ExtendedRenderKitService extRenderKitSrvc =
                Service.getRenderKitService(context, ExtendedRenderKitService.class);
       extRenderKitSrvc.addScript(context,
                                       "AdfPage.PAGE.findComponent('" + popupId + "').show();");
        }   
In order to show the popUp in the region when the user clicks a button I have to use "regionTrans:0:popTrans" for the popupId.
"regionTrans:0:popTrans" was found be looking at the source of the generated page.

What I don't understand is what the "0" represents in the "regionTrans:0:popTrans"

Can anybody explain ?
Regards
Paul
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 15 2009
Added on Sep 16 2009
6 comments
1,657 views