Modal inside a iframe

UI Components for JSF
Post Reply
freirefelipe88
Posts: 9
Joined: 25 Mar 2015, 22:10

16 Jul 2015, 21:27

Hello people,

I'm using primefaces 5.2 and I have a problem within my dialogs.

I have a main project and a custom project, so I need to load pages into my main project,
I'm using iframe and it works fine, but when I open a modal that was loaded inside the iframe, the ui-overlay fulfill only the iframe, and I need to it to fill all the window.

I've tried to use appedTo but I couldn't use something to append the dialog to the parent body.

I need to append the dialog to the body outside the iframe and don't the body inside iframe.

please help me, I think the code would be like

Code: Select all

appendTo="@parent@body"
but I tried but it didn't work either.

please help

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

16 Jul 2015, 22:19

the content of an iframe can't be outside the iframe.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

freirefelipe88
Posts: 9
Joined: 25 Mar 2015, 22:10

17 Jul 2015, 19:06

yeah, but the overlay should get the entire window, that's is the logic of it.

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

18 Jul 2015, 22:56

The iframe is the window, at least relatively. There will always be limktations to components. This is one, which is not easy to fix, at least not relatively to a rare usecase.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests