繁体   English   中英

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

[英]PrimeFaces (JSF) Layout in panel grid component

我正在尝试在面板网格组件中创建布局,但某种程度上它是行不通的。 是否有人对问题出在哪里有任何想法以及如何做得更好的任何建议?

这是我的源代码:

<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>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM