Modal dialog doesn't work with p:layout

Components, Ajax Framework, Utilities and More.
Post Reply
mario_
Posts: 36
Joined: 17 Feb 2011, 12:49

22 Sep 2011, 09:51

When you display a modal dialog within p:layout/p:layoutUnit the dialog itself is also disabled. SInce M3

Code: Select all

 
<p:layout  fullPage="true">
 			<p:layoutUnit position="west" size="75" resizable="false" closable="false" collapsible="false">

			    <p:commandButton value="Modal" onclick="dlg2.show();" type="button"/>  

			</p:layoutUnit>	  
			<p:layoutUnit position="center"  >
				<p:dialog header="Modal Dialog" widgetVar="dlg2" modal="true" height="100">  
				    <h:outputText value="This is a Modal Dialog." />  
				</p:dialog>  
			</p:layoutUnit>
	</p:layout>


I will create an issue.

Matrium
Posts: 112
Joined: 16 May 2011, 08:27

22 Sep 2011, 11:41

try the appendToBody attribute of dialog
PrimeFaces (Elite) 4.0.13, Majorra 2.1.28, Tomcat 7.0.53
Testing with Firefox, Chrome and IE9+IE10
<3 Primefaces!!!

User avatar
optimus.prime
Prime
Posts: 17433
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Sep 2011, 13:34

You can't use "modal" dialog inside layout, either take it outside or use appendToBody.

mario_
Posts: 36
Joined: 17 Feb 2011, 12:49

23 Sep 2011, 20:21

ok I will try it. thanx

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 11 guests