there are problem on p:dialog inside pe:layout

Community Driven Extensions Project
Post Reply
kinson.jobs
Posts: 41
Joined: 12 Aug 2012, 05:47

24 Aug 2012, 19:55

I have layout with pe:layout like:

template.xhtml

Code: Select all

<pe:layout id="fullPage" widgetVar="fpLayoutWidget">  
             <pe:layoutPane position="north" size="50" closable="false" >  
               </pe:layoutPane>
             <pe:layoutPane position="center"> 
             		<ui:insert name="content"></ui:insert> 
             </pe:layoutPane>
             <pe:layoutPane position="west" size="260">  
              </pe:layoutPane>
             <pe:layoutPane position="south" size="30" closable="false" >  
              </pe:layoutPane>  
       </pe:layout>
And main code like:

Code: Select all

<ui:composition template="inc/layout.xhtml">
	<ui:define name="content">  
			<h:panelGroup id="mainArea" layout="block">
                 <h:panelGroup styleClass="content_box" layout="block" >
					<ui:include src="admin/company_list.xhtml" />
				</h:panelGroup>
 		    </h:panelGroup>
	</ui:define>
</ui:composition>

and company_list.xhtml contains p:dialog, when it popup, get dead.
Of course it works well when I replace pe:layout with div, so I figout out, it is pe:layout cause p:dialog problem.

nileshmali
Posts: 110
Joined: 10 Nov 2010, 13:43
Location: Pune, India
Contact:

25 Aug 2012, 13:21

Place p:dialog outside pe:layout and then try.

pe:layout uses absolute positioning and z-index properties.
Nilesh N. Mali
---
Angular 2.x | Prime NG
FF: latest | Chrome: latest | vscode
Blog: http://nileshmali.blogspot.in | PrimeFaces Extensions: https://github.com/primefaces-extensions

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

25 Aug 2012, 14:07

Place the dialog outside or use appendTobody.It will be applicable to p:layout and pe:layout also.This link might be useful for you

http://code.google.com/p/primefaces/iss ... il?id=2429
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests