0
繪圖表意味着JSF 該表只包含標題。經過渲染仍然是一個空白標籤TBODY渲染後jsf - 空tbody元素
JSF:
<h:dataTable>
<h:column>
<f:facet name="header">
<h:outputText value="col1" />
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="col2" />
</f:facet>
</h:column>
</h:dataTable>
HTML結果:
<table>
<thead>
<tr>
<th>
<span>col1</span>
</th>
<th>
<span>col2</span>
</th>
</tr>
</thead>
<tbody> </tbody>
</table>
如何編寫,將不創建一個空的TBODY元素