Jsf 2 Primefaces布局中的中心窗格元素是什么?
我试图使用Primefaces布局,但我得到以下错误。我在谷歌上搜索了这个错误,但在互联网的其他地方我看不到什么帮助 UI布局初始化错误 中心窗格元素不存在 中间窗格是必需的元素 什么是中间窗格 下面是我在xhtml文件中的代码Jsf 2 Primefaces布局中的中心窗格元素是什么?,jsf-2,primefaces,Jsf 2,Primefaces,我试图使用Primefaces布局,但我得到以下错误。我在谷歌上搜索了这个错误,但在互联网的其他地方我看不到什么帮助 UI布局初始化错误 中心窗格元素不存在 中间窗格是必需的元素 什么是中间窗格 下面是我在xhtml文件中的代码 <p:layout > <p:layoutUnit position="north" > <h:outputText value="North unit content." /&g
<p:layout >
<p:layoutUnit position="north" >
<h:outputText value="North unit content." />
</p:layoutUnit>
</p:layout>
这是如何造成的,我如何解决它?答案中有响应,如果使用
类型,则需要指定这样的中心布局:
<p:layout >
<p:layoutUnit position="north" >
<h:outputText value="North unit content." />
</p:layoutUnit>
<p:layoutUnit id="centerLayout" position="center">
CONTENT
</p:layoutUnit>
</p:layout>
内容
答案中有响应,如果使用
类型,则需要指定如下中心布局:
<p:layout >
<p:layoutUnit position="north" >
<h:outputText value="North unit content." />
</p:layoutUnit>
<p:layoutUnit id="centerLayout" position="center">
CONTENT
</p:layoutUnit>
</p:layout>
内容
在6.2版的对话框中-此处建议的修复没有任何作用。相反,这似乎是Primefaces 6.2中的一个bug,这里已经给出了答案:在6.2版的对话框中-这里建议的修复没有任何作用。相反,这似乎是Primefaces 6.2中的一个bug,这里已经给出了答案: