2014-02-26 95 views
0

我試圖在面板網格組件中創建佈局,但不知何故它不起作用。有人有任何想法,問題是什麼,並有任何建議如何做得更好?面板網格組件中的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> 

感謝您的幫助!

回答

0

問題是,您正在使用panelGrid, 使用panelGroup,而您的頁面將正確顯示。

在該代碼片段的其他錯誤是把線 不具有相應