在从backingbean(primefaces)打开的对话框中禁用关闭按钮

在从backingbean(primefaces)打开的对话框中禁用关闭按钮,primefaces,requestcontext,opendialog,Primefaces,Requestcontext,Opendialog,使用以下命令从ManagedBean打开对话框时出现错误: requestcontext.getcurrentInstance().opendialog(“mydialog”,map,null)。 我在地图中将closable设置为false,如下所示: map.put(“closable”, false); 但是关闭按钮[X]出现在对话框中。 我还测试了: map.put(“closable”, “false”); map.put(“toolbar”, false); map.put(“sh

使用以下命令从ManagedBean打开对话框时出现错误:

requestcontext.getcurrentInstance().opendialog(“mydialog”,map,null)。

我在地图中将closable设置为false,如下所示:

map.put(“closable”, false);
但是关闭按钮[X]出现在对话框中。 我还测试了:

map.put(“closable”, “false”);
map.put(“toolbar”, false);
map.put(“showCloseIcon”, false);
…。但是按钮不显示 有什么帮助吗
(对不起我的英语)

也许我弄错了,但这绝对不是在PrimeFaces中打开对话框的方式。你能描述一下你想要达到的目标吗?我想在一个bean的对话框中打开details.xhtml,并在用户点击打开和离开时执行操作。因此,我必须禁用关闭图标,以禁止用户使用关闭[X]按钮关闭对话框,但使用details.xhtml中的“取消”按钮关闭对话框。我测试了这个:Map=HashMap();map.put(“可关闭”,false);RequestContext.getCurrentInstance().openDialog(“/pathTo/details.xhtml”,map,null);但对话框中仍有可单击的关闭图标。谢谢你的回答,对不起我的英语。没有答案吗??