本文介绍了Modal ConfirmDialog over modal Dialog - >一切都被阻止了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用PrimeFaces 3.0.1在模态对话框上显示的模态ConfirmDialog。
如果ConfirmDialog是opend,整个页面都会被锁定,包括ConfirmDialog本身... rien ne va plus

I have a modal ConfirmDialog that is shown over a modal Dialog using PrimeFaces 3.0.1.If the ConfirmDialog is opend, the whole page becomes locked, inclusive the ConfirmDialog itself... rien ne va plus

我找到了一个声音的Bugreport for Primefaces类似的但由于该错误与布局组件有关,因此在我的情况下这并不适用。

I found a Bugreport for Primefaces that sounds similar http://code.google.com/p/primefaces/issues/detail?id=576 but since the bug is related to a Layout-Component this does not really apply in my case.

是否有解决方法或什么?

Is there a workaround or something?

谢谢!

推荐答案

使用 appendToBody =true属性 p:对话框标签来解决此问题。

use the appendToBody="true" attribute of the p:dialog tag to resolve this.

来自PrimeFaces 5的属性已更改。如果您使用5+使用 appendTo =@(body),请参阅迁移指南:

From PrimeFaces 5 on the attribute has changed. If you are using 5+ use appendTo="@(body)" instead, see the migration guide: migration guide

(了解Primefaces版本会有所帮助)

(It would have been helpful to know your Primefaces version)

这篇关于Modal ConfirmDialog over modal Dialog - >一切都被阻止了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 14:43