这是我的jsf:
<h:dataTable class="pretty" value="#{ftController.ftDataModel}" var="item">
<h:column>
<f:facet name="header">
<h:outputText value="Amount"/>
</f:facet>
</h:column>
<h:column >
<f:facet class="right" name="header">
<h:outputText value="Date"/>
</f:facet>
</h:column>
<h:column>
<h:outputLink value="index.jsf"><h:outputText value="#{item.ftType}"/></h:outputLink><br />
<h:outputText class="red" id="amount" value="#{item.amount}"></h:outputText> <h:outputText value=" " /><h:outputText style="font-size:12px" class="gray" value="TL" />
</h:column>
<h:column class="right" >
<h:outputText id="date" value="#{item.date}"></h:outputText>
</h:column>
</h:dataTable>
但是,html 输出是这样的:
<table class="pretty">
<thead>
<tr>
<th scope="col">Amount</th>
<th scope="col">Date</th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td><a href="index.jsf" class="ui-link">Person</a><br><span id="j_idt8:j_idt21:0:amount" class="red">34500.6</span> <span class="gray" style="font-size:12px">TL</span></td>
<td><span id="j_idt8:j_idt21:0:date">10/14/2012</span></td>
</tr>
<tr>
<td></td>
<td></td>
<td><a href="index.jsf" class="ui-link">Person</a><br><span id="j_idt8:j_idt21:1:amount" class="red">3444.78</span> <span class="gray" style="font-size:12px">TL</span></td>
<td><span id="j_idt8:j_idt21:1:date">10/15/2012</span></td>
</tr>
</tbody>
</table>
<th>
它在金额和日期下为前增加了额外的费用。它还添加了<td>s
为什么?这里有什么问题?我该如何解决?为什么要加?