Primefaces dialog with modal=true not working properly

Rajat Gupta picture Rajat Gupta · Jun 20, 2011 · Viewed 32.7k times · Source

I am unable to achieve a (primefaces)dialog box with attribute modal=true. It works correctly with modal=false, but when I try to set modal=true, even the dialog box overlay becomes inactive.

How can I make it work properly ?

Answer

Abhishek Dhote picture Abhishek Dhote · Dec 12, 2014

With Primefaces 5 appendTo="@(body)" fixed the issue for me.