Hi, in the context of displaying generic documents (images, pdf, etc.) I
wanted to use a modal tr:panelPopup, containing an iframe to host actual
document contents. Things such as:
<tr:panelPopup id="modal" position="centered" modal="true">
<iframe src="#{bean.blob}" type="#{bean.type}" width="400"
height="400 frameborder="0"/>
...
Actual document contents are provided by the common trick of catching a
resource request (src) in a phase listener and feeding the proper data
stream into the response.
Now the problem is that with this configuration, the iframe resource is
requested twice on FF.
Besides any performance loss, there are bad side effects since I store
the document into the sesssion during first rendering (in bean.blob), to
be retrieved and removed later, when the iframe requests the resource by
next request. The second request will not find it anymore.
But if the iframe is hosted by any other component on a normal page it
is requested just once.
Any help is appreciated.