无法使用维度添加可滚动的confirmDialog

时间:2017-01-20 09:40:54

标签: jsf primefaces scrollable confirm-dialog

我必须显示一个具有固定宽度和高度的可滚动confirmDialog。 我是这样想的:

<p:confirmDialog id="ui_confirm_dialog" header="Confirmation" severity="info"
    widgetVar="ui_confirm_dialog_Var" max-width="700" max-height="10" scrollable="true">

这不按预期工作。我怎样才能做到这一点?

1 个答案:

答案 0 :(得分:0)

根据他们的文档 - http://www.primefaces.org/documentation该组件上没有 max-height,max-width和scrollable属性。

您可以使用高度和宽度指定尺寸:

<p:confirmDialog id="_ui_confirm_dialog" header="Confirmation"
 severity="info" widgetVar="_ui_confirm_dialog_Var" width="700" height="10">

但是,除了规范之外,你不能使它可滚动,除非你在主要提供的东西之上编写你自己的自定义/复合组件。