I have a modal dialog declared directly in the body of of a page, which contains a layout component with two layout units. When the dialog is shown, the layout component does not show up. The same functionality used to work in PrimeFaces 2.2, but no longer works in 3.0. I was able to reproduce the problem with a simple page, part of which I borrowed from the showcase. Can anyone shed any light on this? I am using PrimeFaces 3.0M2 on Mojarra 2.1 and Glassfish 3.1 on Windows platform. The code for a sample page is attached below:
Code: Select all
<?xml version='1.0' encoding='UTF-8' ?>
<!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:p="http://primefaces.prime.com.tr/ui"
xmlns:h="http://java.sun.com/jsf/html">
<h:head>
<title>Test</title>
</h:head>
<h:body>
<h:form id="form1">
<p:commandButton value="Test" onclick="pointDlg.show();" />
</h:form>
<p:dialog header="Test Dialog" widgetVar="pointDlg" resizable="false" modal="true"
minHeight="400"
minWidth="1020">
<p:panel header="Layout Container">
<p:layout style="width: 960px; height: 350px;" id="layout">
<p:layoutUnit position="west" resizable="true" size="100" minSize="40" maxSize="200">
Left
</p:layoutUnit>
<p:layoutUnit position="center">
Center
</p:layoutUnit>
</p:layout>
</p:panel>
<h:form id="form2">
<p:panel>
<p:commandButton value="Cancel" oncomplete="pointDlg.hide();"/>
</p:panel>
</h:form>
</p:dialog>
</h:body>
</html>
Ax1e