diff options
author | Leif Åstrand <leif@vaadin.com> | 2015-05-18 15:10:30 +0300 |
---|---|---|
committer | Mika Murtojarvi <mika@vaadin.com> | 2015-08-18 16:34:35 +0300 |
commit | cdc07e55c12dc4ffbe509e15c4f4f165fb4a1670 (patch) | |
tree | 43e29dd55b40c6e7e6d57d17d9f68b3e0d6a0244 /server/src/com/vaadin/ui/declarative | |
parent | 19efa87103b037ef600cdb662a7e3b10a6f626ce (diff) | |
download | vaadin-framework-cdc07e55c12dc4ffbe509e15c4f4f165fb4a1670.tar.gz vaadin-framework-cdc07e55c12dc4ffbe509e15c4f4f165fb4a1670.zip |
Write true as attribute="" (#17519)
Change-Id: I49287cc38605abb75059cb553e3baed2a8359067
Diffstat (limited to 'server/src/com/vaadin/ui/declarative')
-rw-r--r-- | server/src/com/vaadin/ui/declarative/DesignFormatter.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/declarative/DesignFormatter.java b/server/src/com/vaadin/ui/declarative/DesignFormatter.java index b1d2520631..73c45caed4 100644 --- a/server/src/com/vaadin/ui/declarative/DesignFormatter.java +++ b/server/src/com/vaadin/ui/declarative/DesignFormatter.java @@ -94,7 +94,11 @@ public class DesignFormatter implements Serializable { public String convertToPresentation(Boolean value, Class<? extends String> targetType, Locale locale) throws Converter.ConversionException { - return String.valueOf(value.booleanValue()); + if (value.booleanValue()) { + return ""; + } else { + return "false"; + } } @Override |