boolean rowheads = getRowHeaderMode() != ROW_HEADER_MODE_HIDDEN;
Object[][] cells = getVisibleCells();
boolean iseditable = isEditable();
+ int rows = cells[0].length;
+
+ if (!isNullSelectionAllowed() && getNullSelectionItemId() != null
+ && containsId(getNullSelectionItemId())) {
+ total--;
+ rows--;
+ }
// selection support
String[] selectedKeys;
target.addAttribute("selectmode", "none");
}
target.addAttribute("cols", cols);
- target.addAttribute("rows", cells[0].length);
+ target.addAttribute("rows", rows);
target
.addAttribute("firstrow",
(this.reqFirstRowToPaint >= 0 ? this.reqFirstRowToPaint