immediate = uidl.getBooleanAttribute("immediate");
final int newTotalRows = uidl.getIntAttribute("totalrows");
if (newTotalRows != totalRows) {
- totalRows = newTotalRows;
if (tBody != null) {
+ if (totalRows == 0) {
+ tHead.clear();
+ }
initializedAndAttached = false;
initialContentReceived = false;
isNewBody = true;
}
+ totalRows = newTotalRows;
}
pageLength = uidl.getIntAttribute("pagelength");
availableCells.put("0", new RowHeadersHeaderCell());
}
+ public void clear() {
+ super.clear();
+ availableCells.clear();
+ availableCells.put("0", new RowHeadersHeaderCell());
+
+ }
+
public void updateCellsFromUIDL(UIDL uidl) {
Iterator it = uidl.getChildIterator();
HashSet updated = new HashSet();