Repository: wicket
Updated Branches:
  refs/heads/master abedb468e -> 7904ae1c6


differentiate between null and 'null'

when reporting submitted values


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/7904ae1c
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/7904ae1c
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/7904ae1c

Branch: refs/heads/master
Commit: 7904ae1c6550a2ed9a274db6e753ae775f0cb4bb
Parents: abedb46
Author: Sven Meier <svenme...@apache.org>
Authored: Mon Feb 5 07:26:11 2018 +0100
Committer: Sven Meier <svenme...@apache.org>
Committed: Mon Feb 5 07:26:44 2018 +0100

----------------------------------------------------------------------
 .../org/apache/wicket/examples/forminput/FormInputModel.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/7904ae1c/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInputModel.java
----------------------------------------------------------------------
diff --git 
a/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInputModel.java
 
b/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInputModel.java
index e114b8f..4d68e40 100644
--- 
a/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInputModel.java
+++ 
b/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInputModel.java
@@ -77,7 +77,7 @@ public final class FormInputModel implements IClusterable
                @Override
                public String toString()
                {
-                       return text;
+                       return text == null ? "null" : "'" + text + "'";
                }
        }
 
@@ -368,9 +368,9 @@ public final class FormInputModel implements IClusterable
        public String toString()
        {
         StringBuilder b = new StringBuilder();
-               b.append("[TestInputObject stringProperty = '")
-                       .append(stringProperty)
-                       .append("', integerProperty = ")
+               b.append("[TestInputObject stringProperty = ")
+                       .append(stringProperty == null ? "null" : "'" + 
stringProperty + "'")
+                       .append(", integerProperty = ")
                        .append(integerProperty)
                        .append(", doubleProperty = ")
                        .append(doubleProperty)

Reply via email to