summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-04-09 15:19:56 +0000
committerArtur Signell <artur.signell@itmill.com>2010-04-09 15:19:56 +0000
commitb0a389c67e496fc47dc5f3c55bbb47c77daf35e4 (patch)
treea07146e8af2da18b56d02d21fa4f32de2328ac83 /src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java
parent685d3ef1a18881b528a2a27227269aab36cfd0d8 (diff)
downloadvaadin-framework-b0a389c67e496fc47dc5f3c55bbb47c77daf35e4.tar.gz
vaadin-framework-b0a389c67e496fc47dc5f3c55bbb47c77daf35e4.zip
Merged [11571] from 6.2
svn changeset:12455/svn branch:6.3
Diffstat (limited to 'src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java')
-rw-r--r--src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java b/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java
index 54695fd3db..3ac0690757 100644
--- a/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java
+++ b/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java
@@ -253,7 +253,16 @@ public class JsonPaintTarget implements PaintTarget {
return result;
}
+ /**
+ * Escapes the given string so it can safely be used as a JSON string.
+ *
+ * @param s
+ * The string to escape
+ * @return Escaped version of the string
+ */
static public String escapeJSON(String s) {
+ // FIXME: Move this method to another class as other classes use it
+ // also.
if (s == null) {
return "";
}
@@ -1030,7 +1039,9 @@ public class JsonPaintTarget implements PaintTarget {
class1 = (Class<? extends Paintable>) superclass;
} else {
System.out
- .append("Warning: no superclass of givent has ClientWidget"
+ .append("Warning: no superclass of "
+ + paintable.getClass().getName()
+ + " has a @ClientWidget"
+ " annotation. Component will not be mapped correctly on client side.");
break;
}