File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes RichFaces rerender with IFrames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "RichFaces rerender with IFrames" Watch "RichFaces rerender with IFrames" New topic

RichFaces rerender with IFrames

N Ing

Joined: Aug 14, 2009
Posts: 2

I want to rerender a rich component (say "resultSection") present in say IFrame1 from another rich component present in say IFrame2. I tried by adding rerender="resultSection" in rich component of IFrame2 but it not worked. I got warning WARN - Target component for id resultSection not found. Pleas anybody help me in solving this.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17280

Frames and IFrames are basically ways to display multiple web pages in a single browser window. Each of those pages has its own DOM and doesn't know anything about what's in any other DOM.

IFrames have been used for malicious purposes, so they're generally not recommended these days. In most cases, you are better off using a tiling system such as the one that comes with Facelets. If you do that you'll have everything in the same DOM.

An IDE is no substitute for an Intelligent Developer.
N Ing

Joined: Aug 14, 2009
Posts: 2
Hi Tim

Thanks for your reply.

Actually I want to use IFrames because I want to give facility of rearranging space of screen to user using mouse which is present in IFrames. I don't know any JSF component has such facility or not. If you know how to provide such facility using JSF components then it will really help me a lot.
I agree. Here's the link:
subject: RichFaces rerender with IFrames
It's not a secret anymore!