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!

How to open navigate page containing iframe from the iframe context

Sardar NaleOct 6 2012 — edited Oct 8 2012
Hi,
I am using jdev version 11.1.1.6.0.
I have iframe in that i have given source as a url of page. On that page load of iframe page i want to navigate the parent page of iframe to the other page i.e. replace original parent page.
how can I acheive that.

When generally I use following method it redirects to that page.
with url like /faces/oracle/webcenter/portalapp/pages/common/temp.jspx
    public void navigateToUrl(String url) {
        //Redirect to Page with givn url string      
        FacesContext fctx = FacesContext.getCurrentInstance();
        ViewHandler vh = fctx.getApplication().getViewHandler();
        UIViewRoot viewToRender = vh.createView(fctx, url);
        fctx.setViewRoot(viewToRender);
        fctx.renderResponse();
    }
but in the page load of fragment page its not redirecting parent page or page in the fragment also .
So what is work around to naviagate parent pages.

Any help is appriciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2012
Added on Oct 6 2012
2 comments
302 views