面板网格组件中的 PrimeFaces (JSF) 布局



我正在尝试在面板网格组件中创建布局,但不知何故它不起作用。有没有人知道问题出在哪里以及如何做得更好?

这是我的源代码:

<p:tab id="tab3" title="One of a few tabs">
<h:panelGrid>
    <p:layout>
        <p:layoutUnit position="center">
            <h:outputText value="Some other components" />
        </p:layoutUnit>
        <p:layoutUnit position="north">
            <h:outputText value="Some other components" />
        </p:layoutUnit>
        <p:layoutUnit position="west">
            <h:outputText value="Some other components" />
        </p:layoutUnit>
        <p:layoutUnit position="east">
            <h:outputText value="Some other components" />
        </p:layoutUnit>
    </p:layout>
</h:panelGrid>

感谢您的任何帮助!

问题panelGrid ; 请改用panelGroup,页面将正确显示。此代码片段中的另一个错误是:

<p:tab id="tab3" title="One of a few tabs">

缺少:

</p:tab>

最新更新