【问题标题】:PrimeFaces (JSF) Layout in panel grid component面板网格组件中的 PrimeFaces (JSF) 布局
【发布时间】:2014-02-26 14:14:59
【问题描述】:

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

这里是我的源代码:

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

感谢您的帮助!

【问题讨论】:

    标签: jsf layout primefaces


    【解决方案1】:

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

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

    不见了:

    </p:tab>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-16
      • 2012-08-27
      • 1970-01-01
      • 2013-05-21
      • 1970-01-01
      • 2020-08-26
      • 2012-09-19
      • 1970-01-01
      相关资源
      最近更新 更多