modal dialog over layout

UI Components for JSF
Post Reply
choicegh
Posts: 7
Joined: 12 Feb 2010, 18:02

16 Feb 2010, 19:04

I am trying to display a modal dialog on a page with a layout defined(West,Center and East). Everything but the layout content is disabled. I have tried with the dialog define within the layout and outside the layout with no success.

I placed this demo(http://www.primefaces.org:8080/prime-sh ... onAjax.jsf) inside a layout.

I am using primefaces-2.0.0.jar release on Glassfish v3.
Using PrimeFaces 2.0.0
Glassfish v3

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

16 Feb 2010, 19:48

Have you set a zindex on p:dialog, if not can you try with a high value like zindex="10".

choicegh
Posts: 7
Joined: 12 Feb 2010, 18:02

16 Feb 2010, 21:58

I set the zindex to 10 and the problem went away. Thanks.
Using PrimeFaces 2.0.0
Glassfish v3

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

17 Feb 2010, 00:21

Glad to know that. :)

klungie
Posts: 12
Joined: 24 Mar 2010, 10:23
Location: Semarang, Indonesia
Contact:

25 Mar 2010, 12:22

hi there,

i have a same prolem. The setup is having layout west and center.
When i try to show a dialog as a modal, everything is freeze and cannot be clicked at all.
I've tried setting the zindex to 10 and 20, doesn't do any good :cry:
I've also put the p:dialog inside or outside the layout. Doesn't make any difference.

I am using primefaces-1.0.0.jar in glassfish 2.1.1

Is there any other trick ?

klungie
Posts: 12
Joined: 24 Mar 2010, 10:23
Location: Semarang, Indonesia
Contact:

25 Mar 2010, 13:41

Sorry my bad...

It actually works.

We have to put p:dialog outside p:layout, and don't forget to set zindex to big number, say 10...
:mrgreen:

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

26 Mar 2010, 13:38

Glad you figured out the problem and thanks for sharing the solution with the community.

marcelo
Posts: 18
Joined: 15 May 2009, 15:23

17 May 2010, 17:05

Same issue, but i would really appreciate that the dialog work even inside a p:layout. Is that anyway possible?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 May 2010, 18:08

Hi,

Yes it is possible.

Please create a new post instead of bumping old posts;

http://primefaces.prime.com.tr/forum/vi ... f=3&t=1194

See number 6.

Thanks.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests