selectionList.addOption(o);
}
TableData td1 = new TableData(selectionList);
// Create the remove button and add it to another column:
InputField removeButton = new InputField("toRemove", "Remove", InputField.InputType.BUTTON);
TableData td2 = new TableData(removeButton);
// Add the two columns to the row:
row.addTableData(td1);
row.addTableData(td2);
// Add an onclick event to the remove button, which executes a client side javascript function for actually
// removing the row:
removeButton.addAttribute("onclick", new StringBuilder("removeRow('").append(rowId).append("');").toString());
// Create an ajax action for appending the new row:
AppendContentAction appendRowAction = new AppendContentAction("employees", row);
// Create a concrete ajax response: