Primefaces-对话框内容不适合弹出面板

Primefaces-对话框内容不适合弹出面板,primefaces,datatable,dialog,resizable,Primefaces,Datatable,Dialog,Resizable,我试图使用对话框框架在弹出窗口中显示数据表。 我的代码基于此处发布的示例: 我正在backbean中使用这段代码来显示弹出窗口: public void选择图像(){ String page=“ImageChooser”; 映射属性=新的HashMap(); 属性。put(“模态”,true); properties.put(“可调整大小”,true); 属性。put(“可拖动”,true); 属性。放置(“宽度”,400); 属性。放置(“高度”,400); RequestContext.ge

我试图使用对话框框架在弹出窗口中显示数据表。 我的代码基于此处发布的示例:

我正在backbean中使用这段代码来显示弹出窗口:

public void选择图像(){
String page=“ImageChooser”;
映射属性=新的HashMap();
属性。put(“模态”,true);
properties.put(“可调整大小”,true);
属性。put(“可拖动”,true);
属性。放置(“宽度”,400);
属性。放置(“高度”,400);
RequestContext.getCurrentInstance().openDialog(页面,属性,null);
}
这是我的ImagerChooser.xhtml页面的一部分:


我的问题是,呈现的数据表总是比我的对话框(640px)宽。然后,我需要使用滚动条。如何调整此数据表的大小(取决于对话框大小)?有自动装配功能吗


提前谢谢

在打开对话框之前,我通过在backbean中添加这些属性找到了解决方案

properties.put("contentWidth", 650);
properties.put("contentheight", 660);
我希望有帮助