svn changeset:20827/svn branch:6.7
collapseRequest = false;
}
if (uidl.hasAttribute("focusedRow")) {
- // TODO figure out if the row needs to focused at all
-
- // scrolled to parent by the server, focusedRow is probably the sam
- // as the first row in view port
+ String key = uidl.getStringAttribute("focusedRow");
+ setRowFocus(getRenderedRowByKey(key));
}
}
if (!inView) {
setCurrentPageFirstItemId(itemId);
}
+ // Select the row if it is selectable.
if (isSelectable()) {
if (isMultiSelect()) {
setValue(Collections.singleton(itemId));
} else {
setValue(itemId);
}
- } else {
- // just instruct the VTreeTable to set focus the row (not to select)
- setFocusedRow(itemId);
}
+ setFocusedRow(itemId);
}
private void setFocusedRow(Object itemId) {