summaryrefslogtreecommitdiffstats
path: root/server/src/com
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2012-10-16 11:13:35 +0300
committerVaadin Code Review <review@vaadin.com>2012-10-16 09:42:18 +0000
commit39515829548b0ff2097e4562c0d75e8d02074e15 (patch)
treeeccff6ce9764ec8ab334f196cad6e2a96bcca39b /server/src/com
parentc3a03b70126931ecab5db93fc12c99ac66677688 (diff)
downloadvaadin-framework-39515829548b0ff2097e4562c0d75e8d02074e15.tar.gz
vaadin-framework-39515829548b0ff2097e4562c0d75e8d02074e15.zip
Delegate UI.replaceComponent() to content instead of throwing UOE (#9967)
* Added a test, also renamed tests/server/component/root to tests/server/component/ui Change-Id: I80d30dd5acb3643cfb3cfc0b972f52ffa4512691
Diffstat (limited to 'server/src/com')
-rw-r--r--server/src/com/vaadin/ui/UI.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java
index 31a7446e96..2878d10fa1 100644
--- a/server/src/com/vaadin/ui/UI.java
+++ b/server/src/com/vaadin/ui/UI.java
@@ -556,9 +556,13 @@ public abstract class UI extends AbstractComponentContainer implements
return this;
}
+ /**
+ * This implementation replaces a component in the content container (
+ * {@link #getContent()}) instead of in the actual UI.
+ */
@Override
public void replaceComponent(Component oldComponent, Component newComponent) {
- throw new UnsupportedOperationException();
+ getContent().replaceComponent(oldComponent, newComponent);
}
/**