You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2017/10/17 19:25:44 UTC

wicket git commit: WICKET-6348 minor addition: update raw input when component is not contained in form this wasn't done in 7.x either, but for consistency the raw input should be updated, so it is available when a validation fails

Repository: wicket
Updated Branches:
  refs/heads/WICKET-6105-java.time 5f978f188 -> 7e1a89433


WICKET-6348 minor addition: update raw input when component is not contained in form
this wasn't done in 7.x either, but for consistency the raw input should be updated, so it is available when a validation fails


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

Branch: refs/heads/WICKET-6105-java.time
Commit: 7e1a89433ecbdbcc5a27435b665edf8bee4c6456
Parents: 5f978f1
Author: Sven Meier <sv...@apache.org>
Authored: Tue Oct 17 21:25:18 2017 +0200
Committer: Sven Meier <sv...@apache.org>
Committed: Tue Oct 17 21:25:18 2017 +0200

----------------------------------------------------------------------
 .../wicket/markup/html/form/FormComponentUpdatingBehavior.java  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/7e1a8943/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponentUpdatingBehavior.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponentUpdatingBehavior.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponentUpdatingBehavior.java
index 0d5f410..d913e77 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponentUpdatingBehavior.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponentUpdatingBehavior.java
@@ -233,6 +233,10 @@ public class FormComponentUpdatingBehavior extends Behavior implements IRequestL
 		Form<?> form = formComponent.findParent(Form.class);
 		if (form == null)
 		{
+			// let form component change its input, so it is available
+			// in case of any errors
+			formComponent.inputChanged();
+
 			process();
 		}
 		else
@@ -264,6 +268,7 @@ public class FormComponentUpdatingBehavior extends Behavior implements IRequestL
 				@Override
 				public boolean getDefaultFormProcessing()
 				{
+					// do not process the whole form
 					return false;
 				}
 			});