【发布时间】:2012-02-28 08:38:16
【问题描述】:
我遇到的情况是,我的数据多于返回给 dataTable 元素的单行所能容纳的数据。为了解决这个问题,我简单地将结果合并到一个单元格中。我正在寻找一种方法来确定我是否已经到达结果集中的最后一个对象,以便我可以删除用作分隔符的底部边框。最终我不知道我要处理多少个对象。
.most {
background-color:cyan;
border-bottom:medium solid black;
}
.last {
border-bottom:none;
}
<h:dataTable id="myTable" value="#{flowData.selectedItem.profile}" var="profile" columnClasses="most, last">
<h:column>
<h:inputText id="_last" value="#{profile.last}" />
<h:inputText id="_first" value="#{profile.first}" />
<h:inputText id="_middle" value="#{profile.middle}" />
<h:inputText id="_city" value="#{profile.city}" />
<h:inputText id="_state" value="#{profile.state}" />
</h:column>
</h:dataTable>
提前感谢您的任何意见。
【问题讨论】: