z-index problem with showing pdf in IE

UI Components for JSF
Post Reply
Mathias Noth
Posts: 5
Joined: 21 Dec 2011, 12:35

21 Dec 2011, 12:51

Hi All,

In my primefaces application I show pdf files. In order to do it, inside a jsf page I use <object> tag.
The problem is that the pdf viewer in IE (default acrobat) is shown on top of all other components. In other words, the pdf file hides all popups, dialogs, etc...

I have played with z-index but with no success. It seems that no matter what I do, the z-index of the pdf object is just ignored. The same problem exists if I use <iframe>, or <embed> instead of <object>, for embedding a pdf.

In Firefox everything works like a charm, but not in IE (I have tried versions 8, and 9)

Any ideas?

Thank you,
Mathias
PrimeFaces 3.2-snapshot | Glassfish 2.1.1 | Mojarra 2.1.4
IE 9, Firefox 8.0

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

21 Dec 2011, 13:32

what is the relation with Primefaces?

Mathias Noth
Posts: 5
Joined: 21 Dec 2011, 12:35

21 Dec 2011, 15:08

Yes, you are right. I didn't formulate the question correctly.

The question should go:
Is there a way to use any primefaces component like p:lightBox or p:media in order to show pdf content below a p:dialog.
Or, even better, is there a way to specify p:dialog z-index to be shown on top of a pdf?
PrimeFaces 3.2-snapshot | Glassfish 2.1.1 | Mojarra 2.1.4
IE 9, Firefox 8.0

rtozati
Posts: 38
Joined: 02 Dec 2011, 02:50

21 Dec 2011, 15:40

Hello,

you could use a frame.

Mathias Noth
Posts: 5
Joined: 21 Dec 2011, 12:35

21 Dec 2011, 17:18

Hi,

Thank you for the reply.

Can you, please, give me some guidelines how to use a frame for this purpose.
I have tried inline frame (<iframe... >) with the same result: p:dialog is always partially hidden behind the pdf.

Thanks
PrimeFaces 3.2-snapshot | Glassfish 2.1.1 | Mojarra 2.1.4
IE 9, Firefox 8.0

giancarlos62_24
Posts: 5
Joined: 11 Feb 2012, 07:15

25 Feb 2012, 00:29

Help!!!!

I have a seemed problem, I want to show an xml in html format through an xsl file, so I am using a iframe which points out to XML file inside a main p:dialog.

<iframe src="#{comprobanteClienteBean.detalleComprobanteBean.rutaRelativaDetalleComprobante}" height="300px"></iframe>

the problem happens when I click on a button (inside the main p:dialog) which shows an p:confirmDialog, so it is hidden by the iframe,
and the worst part is that only happens in IE.

Is there some way to show an xml in html format (through xsl) in primefaces.


Any advice ??????????????? please!!!!!!!!!

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

25 Feb 2012, 13:36

Is there some way to show an xml in html format (through xsl) in primefaces.
The problem is iframes and ie... Has nothing to do with primefaces and primefaces cannot solve this afaik.

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

26 Feb 2012, 22:42

Easy. Search stackoverflow.com for questions like these. Huge community there, with most-likely an answer for any/all your (non-PrimeFaces) questions.

stackoverflow display xml xsl html
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

Mathias Noth
Posts: 5
Joined: 21 Dec 2011, 12:35

27 Feb 2012, 10:00

You can check out this link:
http://groups.google.com/group/microsof ... +pdf&pli=1

It helped me to solve my problem.
PrimeFaces 3.2-snapshot | Glassfish 2.1.1 | Mojarra 2.1.4
IE 9, Firefox 8.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests