summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-01-08 15:39:23 +0200
committerVaadin Code Review <review@vaadin.com>2015-01-08 14:30:21 +0000
commit329a24756347cdaf49441fcd9c8e96255fdb732e (patch)
treed84f0fbad58c8d61d5c16c5b52dd168caedbfb9e /server
parentd4e633d49441123bda15c90f4aa657bda31ee43c (diff)
downloadvaadin-framework-329a24756347cdaf49441fcd9c8e96255fdb732e.tar.gz
vaadin-framework-329a24756347cdaf49441fcd9c8e96255fdb732e.zip
Fix Grid editor hanging on exception in commit (#15536)
This patch adds a minimal editor subpart support. Change-Id: I36a81cb432f71821715cb60338a07a289bdae18d
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/ui/Grid.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/Grid.java b/server/src/com/vaadin/ui/Grid.java
index d9f1b266a2..fa0ec6fb8d 100644
--- a/server/src/com/vaadin/ui/Grid.java
+++ b/server/src/com/vaadin/ui/Grid.java
@@ -2719,10 +2719,10 @@ public class Grid extends AbstractComponent implements SelectionNotifier,
try {
Object id = getContainerDataSource().getIdByIndex(rowIndex);
doEditItem(id);
- getEditorRpc().confirmBind();
} catch (Exception e) {
handleError(e);
}
+ getEditorRpc().confirmBind();
}
@Override
@@ -2739,10 +2739,10 @@ public class Grid extends AbstractComponent implements SelectionNotifier,
public void save(int rowIndex) {
try {
saveEditor();
- getEditorRpc().confirmSave();
} catch (Exception e) {
handleError(e);
}
+ getEditorRpc().confirmSave();
}
private void handleError(Exception e) {