我有一种情况,我有更多的数据,可以容纳在一行返回到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>
Run Code Online (Sandbox Code Playgroud)
提前感谢任何输入.