diff --git a/src/main/java/org/gcube/portlets/user/databasesmanager/client/panels/GxtBorderLayoutPanel.java b/src/main/java/org/gcube/portlets/user/databasesmanager/client/panels/GxtBorderLayoutPanel.java index dd477fb..2a72224 100644 --- a/src/main/java/org/gcube/portlets/user/databasesmanager/client/panels/GxtBorderLayoutPanel.java +++ b/src/main/java/org/gcube/portlets/user/databasesmanager/client/panels/GxtBorderLayoutPanel.java @@ -1826,7 +1826,10 @@ public class GxtBorderLayoutPanel extends ContentPanel { private void displayTableName(String tableName) { rootLogger.log(Level.INFO, "displaying table name " + tableName + " in the panel"); - Result table = new Result("Selected table", tableName); + final Result table = new Result("Selected table", tableName); + final ListStore store = new ListStore(); + store.add(table); + // create column configuration List configs = new ArrayList(); ColumnConfig column = new ColumnConfig(); @@ -1842,13 +1845,22 @@ public class GxtBorderLayoutPanel extends ContentPanel { TextField textValue = new TextField(); // text.setAllowBlank(false); - column.setEditor(new CellEditor(textValue)); +// column.setEditor(new CellEditor(textValue)); + column.setEditor(new CellEditor(textValue){ +// public Object preProcessValue(Object value) { +// System.out.println("value 1: " + store.getModels().get(0).getValue()); +// return store.getModels().get(0).getValue(); +// } + public Object postProcessValue(Object value) { +// System.out.println("value: " + store.findModel(table).getValue()); + return store.findModel(table).getValue(); + } + + }); + configs.add(column); ColumnModel cm = new ColumnModel(configs); - ListStore store = new ListStore(); - store.add(table); - // grid EditorGrid grid = new EditorGrid(store, cm); // display information in the panel