tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkemn...@apache.org
Subject tapestry-5 git commit: TAP5-2308: defer resetting the clientID, otherwise a new one would be created when the getClientId method is called later
Date Thu, 10 Sep 2015 09:04:45 GMT
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 <jochen.kemnade@eddyson.de>
Authored: Thu Sep 10 11:01:10 2015 +0200
Committer: Jochen Kemnade <jochen.kemnade@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;
     }
 


Mime
View raw message