int row = getRowAction1().getRowIndex(); String id = customer.getAccountCollection().get(row).getId(); System.out.println("Row action: " + row + " account " + id); getSessionScope().put("accountID", id); return "accountDetails";