diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-10-20 11:36:45 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-10-24 13:52:17 +0300 |
commit | c72beed9267bcf7d2693fbab87c31904319b1e84 (patch) | |
tree | e7dc9addacf86a16c6e6270adc6135b234452bb7 /server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java | |
parent | 6d75c88fcb8c37e4f588bdc09dc183f9d51e4a62 (diff) | |
download | vaadin-framework-c72beed9267bcf7d2693fbab87c31904319b1e84.tar.gz vaadin-framework-c72beed9267bcf7d2693fbab87c31904319b1e84.zip |
Add ValueContext parameter for Converters
Change-Id: I47179b06b9e345f5a454ac1806d0bc9bcac24bcf
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java b/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java index 4290620051..4d655e0cbf 100644 --- a/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java +++ b/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java @@ -37,6 +37,7 @@ import org.jsoup.nodes.Element; import org.jsoup.nodes.Node; import com.vaadin.data.util.converter.Converter; +import com.vaadin.data.util.converter.ValueContext; import com.vaadin.shared.ui.AlignmentInfo; import com.vaadin.shared.util.SharedUtil; import com.vaadin.ui.Alignment; @@ -398,7 +399,7 @@ public class DesignAttributeHandler implements Serializable { Converter<String, Object> converter = (Converter<String, Object>) getFormatter() .findConverterFor(sourceType); if (converter != null) { - return converter.convertToPresentation(value, null); + return converter.convertToPresentation(value, new ValueContext()); } else { return value.toString(); } |