It depends on the version of IE browser you would like to support.
If you don't need IE6 / 7 support, you can use the CSS2 pseudo-class :last-childfor this.
table.yourTableClass tbody tr td {
background-color: cyan;
border-bottom: medium solid black;
}
table.yourTableClass tbody tr:last-child td {
border-bottom: none;
}
with
<h:dataTable ... styleClass="yourTableClass">
(, IE7 CSS2 :first-child, :last-child!)
IE7, IE6, , border-top border-bottom, none :first-child:
table.yourTableClass tbody tr td {
background-color: cyan;
border-top: medium solid black;
}
table.yourTableClass tbody tr:first-child td {
border-top: none;
}
, , IE6 ( discutable ), ( !) bean.
<h:dataTable ... rowClasses="#{flowData.rowClasses}">
public String getRowClasses() {
StringBuilder builder = new StringBuilder();
int size = selectedItem.getProfile().size();
for (int i = 0; i < size; i++) {
builder.append((i + 1 < size) ? "most," : "last");
}
return builder.toString();
}
CSS
tr.more td {
background-color: cyan;
border-bottom: medium solid black;
}
tr.last td {
border-bottom: none;
}