diff options
author | Jonatan Kronqvist <jonatan@vaadin.com> | 2012-10-02 13:54:48 +0300 |
---|---|---|
committer | Jonatan Kronqvist <jonatan@vaadin.com> | 2012-10-02 14:14:28 +0300 |
commit | facd94111590d9fe7b8b5ceffe3f7d0db0024948 (patch) | |
tree | a917695407669fbd6bfb66b5b01501580bc41e6a /client | |
parent | 97378c9c2ff774452c8d324fd28935fa910a1681 (diff) | |
download | vaadin-framework-facd94111590d9fe7b8b5ceffe3f7d0db0024948.tar.gz vaadin-framework-facd94111590d9fe7b8b5ceffe3f7d0db0024948.zip |
Fixes #9828 - ComponentLocator now makes use of debug IDs if present
Change-Id: I58aeee42ef386dd3eef8fdf25f8dd430eb22774c
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ComponentLocator.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ComponentLocator.java b/client/src/com/vaadin/client/ComponentLocator.java index 3338147465..e69c55d445 100644 --- a/client/src/com/vaadin/client/ComponentLocator.java +++ b/client/src/com/vaadin/client/ComponentLocator.java @@ -436,8 +436,10 @@ public class ComponentLocator { if (w == null) { return null; } - - if (w instanceof VUI) { + String elementId = w.getElement().getId(); + if (elementId != null && !elementId.isEmpty()) { + return "PID_S" + elementId; + } else if (w instanceof VUI) { return ""; } else if (w instanceof VWindow) { Connector windowConnector = ConnectorMap.get(client) |