public void onClick() {
setResponsePage(previous);
}
});
final ExcelFile excelFile = previous.getExcelFile();
final List<Cell> rowCells = excelFile.getRowCellsCloned(index);
Form form = new Form("form") {
@Override
public void onSubmit() {
excelFile.setRowCells(index, rowCells);
setResponsePage(previous);
}
};
add(form);
final SimpleAttributeModifier CLASS_SELECTED = new SimpleAttributeModifier("class", "selected");
ListView listView = new ListView("cells", rowCells) {
protected void populateItem(ListItem item) {
Column column = excelFile.getColumns().get(item.getIndex());
item.add(new Label("heading", column.getLabel()));
final Cell cell = (Cell) item.getModelObject();
TextArea textArea = new TextArea("value");
textArea.setModel(new IModel() {
public Object getObject() {