You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jk...@apache.org on 2015/09/10 11:04:45 UTC

tapestry-5 git commit: TAP5-2308: defer resetting the clientID, otherwise a new one would be created when the getClientId method is called later

Repository: tapestry-5
Updated Branches:
  refs/heads/master c4202982a -> 0fa5d92d9


TAP5-2308: defer resetting the clientID, otherwise a new one would be created when the getClientId method is called later


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/0fa5d92d
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/0fa5d92d
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/0fa5d92d

Branch: refs/heads/master
Commit: 0fa5d92d90ae62319c55bfd3cc02f05afe01eee2
Parents: c420298
Author: Jochen Kemnade <jo...@eddyson.de>
Authored: Thu Sep 10 11:01:10 2015 +0200
Committer: Jochen Kemnade <jo...@eddyson.de>
Committed: Thu Sep 10 11:04:28 2015 +0200

----------------------------------------------------------------------
 .../org/apache/tapestry5/corelib/components/FormFragment.java | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/0fa5d92d/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/FormFragment.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/FormFragment.java b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/FormFragment.java
index 6de0214..972fde0 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/FormFragment.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/FormFragment.java
@@ -14,6 +14,7 @@ package org.apache.tapestry5.corelib.components;
 
 import org.apache.tapestry5.*;
 import org.apache.tapestry5.annotations.Environmental;
+import org.apache.tapestry5.annotations.HeartbeatDeferred;
 import org.apache.tapestry5.annotations.Import;
 import org.apache.tapestry5.annotations.Parameter;
 import org.apache.tapestry5.annotations.SupportsInformalParameters;
@@ -238,6 +239,12 @@ public class FormFragment implements ClientElement
 
         environment.pop(FormSupport.class);
 
+        resetClientId();
+    }
+
+    @HeartbeatDeferred
+    void resetClientId()
+    {
         clientId = null;
     }