Page 1 of 1

Modal dialog doesn't work with p:layout

Posted: 22 Sep 2011, 09:51
by mario_
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.

Re: Modal dialog doesn't work with p:layout

Posted: 22 Sep 2011, 11:41
by Matrium
try the appendToBody attribute of dialog

Re: Modal dialog doesn't work with p:layout

Posted: 22 Sep 2011, 13:34
by cagatay.civici
You can't use "modal" dialog inside layout, either take it outside or use appendToBody.

Re: Modal dialog doesn't work with p:layout

Posted: 23 Sep 2011, 20:21
by mario_
ok I will try it. thanx