在dataTable标签内的Html标签全解析不出来,也就是放在里面的table、tr和td没有任何作用。只有在column标签里面的数据才可以显示出来。我想格式化输出这些数据,有什么可解决的办法。谢谢大家来帮忙!!!<h:dataTable value="#{blog.all}" var="log">
<table width="700" border="1" align="center" cellspacing="0">
<tr>
<td height="30" bgcolor="#CCCCCC">
<h:outputText value="#{msg.blog_Title}" styleClass="pageContent"/>
<h:column>
<h:outputText value="#{log.Title}" styleClass="pageContent"/>
</h:column>
</td>
</tr>
<tr>
<td>
<h:column>
<h:outputText value="#{log.Message}" styleClass="pageContent"/>
</h:column>
</td>
</tr>
<tr>
<td align="right">
<h:outputText value="#{msg.blog_writeDate}"styleClass="pageContent" />
<h:column>
<h:outputText value="#{log.WriteDate}" styleClass="pageContent"/>
</h:column>
<h:column>
<h:commandLink actionListener="#{blog.modify}" action="blogEdit">
<h:outputText value="#{msg.blog_edit}" styleClass="pageContent"/>
<f:param name="id" value="#{log.ID}" />
</h:commandLink>
</h:column>
<h:column>
<h:commandLink actionListener="#{blog.delete}" action="blogEdit">
<h:outputText value="#{msg.blog_delete}" styleClass="pageContent"/>
<f:param name="id" value="#{log.ID}" />
</h:commandLink>
</h:column>
</td>
</tr>
</table>
</h:dataTable>
<table width="700" border="1" align="center" cellspacing="0">
<tr>
<td height="30" bgcolor="#CCCCCC">
<h:outputText value="#{msg.blog_Title}" styleClass="pageContent"/>
<h:column>
<h:outputText value="#{log.Title}" styleClass="pageContent"/>
</h:column>
</td>
</tr>
<tr>
<td>
<h:column>
<h:outputText value="#{log.Message}" styleClass="pageContent"/>
</h:column>
</td>
</tr>
<tr>
<td align="right">
<h:outputText value="#{msg.blog_writeDate}"styleClass="pageContent" />
<h:column>
<h:outputText value="#{log.WriteDate}" styleClass="pageContent"/>
</h:column>
<h:column>
<h:commandLink actionListener="#{blog.modify}" action="blogEdit">
<h:outputText value="#{msg.blog_edit}" styleClass="pageContent"/>
<f:param name="id" value="#{log.ID}" />
</h:commandLink>
</h:column>
<h:column>
<h:commandLink actionListener="#{blog.delete}" action="blogEdit">
<h:outputText value="#{msg.blog_delete}" styleClass="pageContent"/>
<f:param name="id" value="#{log.ID}" />
</h:commandLink>
</h:column>
</td>
</tr>
</table>
</h:dataTable>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货