简体   繁体   English

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

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

I'm trying to create a Layout in a Panel Grid Component and somehow it just doesn't work. 我正在尝试在面板网格组件中创建布局,但某种程度上它是行不通的。 Has somebody got any Idea where the problem is and any advice how to do it better? 是否有人对问题出在哪里有任何想法以及如何做得更好的任何建议?

Here my source code: 这是我的源代码:

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

Thanks for any Help! 谢谢你的帮助!

The problem is panelGrid ; 问题是panelGrid ; use panelGroup instead, and the page will display correctly. 改用panelGroup ,页面将正确显示。 Another mistake in this code fragment is that: 此代码段中的另一个错误是:

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

is missing: 不见了:

</p:tab>

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

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