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