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 <[email protected]> Authored: Thu Sep 10 11:01:10 2015 +0200 Committer: Jochen Kemnade <[email protected]> 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; }
