diff options
author | Artur Signell <artur.signell@itmill.com> | 2010-09-20 13:38:22 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2010-09-20 13:38:22 +0000 |
commit | 75cb6c4f2005a479f60ac05fd9b15f22e8d61e48 (patch) | |
tree | 436d1966ba6195f2a40db5e97f312da2ef6db21c /src | |
parent | 5ed9d2639ae85fe3ac0404208576fc324ce0db94 (diff) | |
download | vaadin-framework-75cb6c4f2005a479f60ac05fd9b15f22e8d61e48.tar.gz vaadin-framework-75cb6c4f2005a479f60ac05fd9b15f22e8d61e48.zip |
Fix for #5638 - ComponentLocator does not use DOM hierarchy when a SubPartAware fails to return an identifier
svn changeset:15073/svn branch:6.4
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ComponentLocator.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ComponentLocator.java b/src/com/vaadin/terminal/gwt/client/ComponentLocator.java index 0c11064707..6644a243d0 100644 --- a/src/com/vaadin/terminal/gwt/client/ComponentLocator.java +++ b/src/com/vaadin/terminal/gwt/client/ComponentLocator.java @@ -136,14 +136,15 @@ public class ComponentLocator { */ String elementLocator = ((SubPartAware) w) .getSubPartName(targetElement); - return path + SUBPART_SEPARATOR + elementLocator; - } else { - /* - * If everything else fails we use the DOM path to identify the - * target element - */ - return path + getDOMPathForElement(targetElement, w.getElement()); + if (elementLocator != null) { + return path + SUBPART_SEPARATOR + elementLocator; + } } + /* + * If everything else fails we use the DOM path to identify the target + * element + */ + return path + getDOMPathForElement(targetElement, w.getElement()); } /** |