diff options
author | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-03-19 23:12:24 +0100 |
---|---|---|
committer | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-03-19 23:12:24 +0100 |
commit | fec2fa023d6f35e314b2406632c9d19df7851b23 (patch) | |
tree | 424f63511d3a781cadda77207507266b6a385c59 | |
parent | 0e1b3ac267eaccd1b0de3d13586f367f3c953752 (diff) | |
parent | 28322dc6b23697f28917839e32ddd390e1348eae (diff) | |
download | gwtquery-fec2fa023d6f35e314b2406632c9d19df7851b23.tar.gz gwtquery-fec2fa023d6f35e314b2406632c9d19df7851b23.zip |
Merge branch 'master' of github.com:gwtquery/gwtquery
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java index 3c82a618..408d1336 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java @@ -203,7 +203,12 @@ public class WidgetsUtils { } else if (firstParentWidget instanceof HasOneWidget) { ((HasOneWidget)firstParentWidget).setWidget(widget); } else if (firstParentWidget instanceof HasWidgets) { - ((HasWidgets)firstParentWidget).add(widget); + try { + ((HasWidgets)firstParentWidget).add(widget); + } catch (UnsupportedOperationException e) { + // Some widgets like 'table' has no implementation of 'add(widget)' + widgetSetParent(widget, firstParentWidget); + } } else { widgetSetParent(widget, firstParentWidget); } |