problem with lightBpx om PF 3.1

UI Components for JSF
Post Reply
prophet
Posts: 92
Joined: 17 Mar 2011, 19:59

09 Feb 2012, 15:13

Hi all! While migrating from PF 3.0 to PF 3.1 I've noticed that me lightBox not working well. My code is (index.xhtml):

Code: Select all

	<div class="text hint ajaxForm">

		<p:lightBox transition="clip" width="50%" style="padding-top:5px;">
			<h:outputLink value="faces/help.xhtml">link</h:outputLink>
		</p:lightBox>
	</div>
and help.xhtml is very simple:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:body>
            <h2>Head</h2>
             Bla-bla-bla
    </h:body>
</html>
index.xhtml and help.xhtml are in the same folder. This code works fine on PF 3.0 or PF 3.0M4. But why I have problem with PF 3.1? No error in firebug or in the log.... I just see black ajaxloader when click on the link and in firebug help.xhtml 200 Ok. But my help.xhtml don't load in lightBox. Anybody know what's wrong?

prophet
Posts: 92
Joined: 17 Mar 2011, 19:59

10 Feb 2012, 12:07

Anybody know what it can be???

User avatar
T.dot
Expert Member
Posts: 620
Joined: 01 Feb 2012, 15:39
Location: Vienna/Austria

10 Feb 2012, 12:33

add the iframe parameter to your lightbox:

<p:lightBox iframe="true">
<h:outputLink value="help.xhtml">link</h:outputLink>
</p:lightBox>

And make sure your included page has a background-set, otherwise it could be all black.

prophet
Posts: 92
Joined: 17 Mar 2011, 19:59

10 Feb 2012, 12:40

code like this work's well

Code: Select all

	
<p:lightBox transition="clip" iframe="true" style="padding-top:5px;">
      <h:outputLink value="faces/help.xhtml">
            <h:outputText value="#{msg.divPromptHref}"/>
      </h:outputLink>
</p:lightBox>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests