diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2015-06-01 17:09:04 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-06-03 13:53:22 +0000 |
commit | 8da6cbdd0268214dbcf9cf05eb052e6d02c13c94 (patch) | |
tree | 2d1aea096d5e2b0a67f0e28405f22092b6fb768c /client-compiler | |
parent | df0a4ae5bc6f5588827ca877175aaaf33b4671bd (diff) | |
download | vaadin-framework-8da6cbdd0268214dbcf9cf05eb052e6d02c13c94.tar.gz vaadin-framework-8da6cbdd0268214dbcf9cf05eb052e6d02c13c94.zip |
Allow arbitrary serializable types as Renderer data type (#15410)
Change-Id: If535c5603116be204e11936f9186ce3856b74b03
Diffstat (limited to 'client-compiler')
-rw-r--r-- | client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java | 3 | ||||
-rw-r--r-- | client-compiler/src/com/vaadin/server/widgetsetutils/metadata/RendererVisitor.java | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java b/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java index 405925a920..fedc86fbf6 100644 --- a/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java +++ b/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java @@ -48,6 +48,7 @@ import com.vaadin.client.ui.UnknownComponentConnector; import com.vaadin.shared.communication.ClientRpc; import com.vaadin.shared.communication.ServerRpc; import com.vaadin.shared.ui.Connect; + import elemental.json.JsonValue; public class ConnectorBundle { @@ -579,7 +580,7 @@ public class ConnectorBundle { frameworkHandledTypes.add(Set.class); frameworkHandledTypes.add(Byte.class); frameworkHandledTypes.add(Character.class); - + frameworkHandledTypes.add(Void.class); } private boolean serializationHandledByFramework(JType setterType) { diff --git a/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/RendererVisitor.java b/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/RendererVisitor.java index b0b947e3bf..12e67988eb 100644 --- a/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/RendererVisitor.java +++ b/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/RendererVisitor.java @@ -80,6 +80,8 @@ public class RendererVisitor extends TypeVisitor { JType presentationType = getPresentationType(type, logger); bundle.setPresentationType(type, presentationType); + bundle.setNeedsSerialize(presentationType); + logger.log(Type.DEBUG, "Presentation type of " + type + " is " + presentationType); } |