diff options
author | Fabian Lange <lange.fabian@gmail.com> | 2014-06-23 15:15:47 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2014-06-24 06:14:45 +0000 |
commit | 82aad1f9ce26ae9cd0822df0dda5e8805adf7138 (patch) | |
tree | 0a45bb1ad76fdeeb256b93d638a66803ed12f131 /server/src/com/vaadin/ui/AbstractMedia.java | |
parent | 413aace227c47bfbb5df6f33953f5cf854f3f3dd (diff) | |
download | vaadin-framework-82aad1f9ce26ae9cd0822df0dda5e8805adf7138.tar.gz vaadin-framework-82aad1f9ce26ae9cd0822df0dda5e8805adf7138.zip |
Reading properties of components should not set state to dirty (#14060).
Added Automatic Testcase. The testcase needs a default constructor,
which has been added.
The test also found an edge case in Form.java which has been corrected,
as well as one missing getState(false) in AbstractMedia.
Change-Id: Id764c9e1596123015a84f6c2a9507f03bde383b1
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractMedia.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractMedia.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/AbstractMedia.java b/server/src/com/vaadin/ui/AbstractMedia.java index d0ff8494f0..0bd8c3ea77 100644 --- a/server/src/com/vaadin/ui/AbstractMedia.java +++ b/server/src/com/vaadin/ui/AbstractMedia.java @@ -146,7 +146,7 @@ public abstract class AbstractMedia extends AbstractComponent { */ public List<Resource> getSources() { ArrayList<Resource> sources = new ArrayList<Resource>(); - for (URLReference ref : getState().sources) { + for (URLReference ref : getState(false).sources) { sources.add(((ResourceReference) ref).getResource()); } return sources; |