You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/12/05 17:24:08 UTC

git commit: WICKET-5437 When a ConversionException is thrown, its message is not used in the ValidationError

Updated Branches:
  refs/heads/master da6b0a13f -> d4d377449


WICKET-5437 When a ConversionException is thrown, its message is not used in the ValidationError


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

Branch: refs/heads/master
Commit: d4d377449490f511eecbce085288137bc90da036
Parents: da6b0a1
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Dec 5 17:23:13 2013 +0100
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Dec 5 17:24:02 2013 +0100

----------------------------------------------------------------------
 .../java/org/apache/wicket/markup/html/form/FormComponent.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/d4d37744/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
index 1744060..963cb45 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java
@@ -1218,7 +1218,7 @@ public abstract class FormComponent<T> extends LabeledWebMarkupContainer impleme
 	 */
 	protected ValidationError newValidationError(ConversionException cause)
 	{
-		ValidationError error = new ValidationError();
+		ValidationError error = new ValidationError(cause.getMessage());
 
 		if (cause.getResourceKey() != null)
 		{