// Save current state for the previous row index
saveDescendantState();
// Update to the new row index
this.rowIndex = rowIndex;
DataModel localModel = getDataModel();
localModel.setRowIndex(rowIndex);
// Clear or expose the current row data as a request scope attribute
if (var != null) {
Map<String, Object> requestMap =
getFacesContext().getExternalContext().getRequestMap();