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 2020/11/14 23:37:49 UTC
[wicket] 04/05: WICKET-6847 clear pages in invalidateNow()
This is an automated email from the ASF dual-hosted git repository.
svenmeier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git
commit 2feed893069031f5d6e2a9353e73dae06f61864c
Author: Sven Meier <sv...@apache.org>
AuthorDate: Wed Nov 11 18:58:43 2020 +0100
WICKET-6847 clear pages in invalidateNow()
otherwise they will be stored on detach when no session is available and response already committed
---
wicket-core/src/main/java/org/apache/wicket/Session.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/wicket-core/src/main/java/org/apache/wicket/Session.java b/wicket-core/src/main/java/org/apache/wicket/Session.java
index 76f339c..9906da1 100644
--- a/wicket-core/src/main/java/org/apache/wicket/Session.java
+++ b/wicket-core/src/main/java/org/apache/wicket/Session.java
@@ -526,6 +526,9 @@ public abstract class Session implements IClusterable, IEventSink, IMetadataCont
invalidate();
}
+ // clear all pages possibly pending in the request
+ getPageManager().clear();
+
destroy();
feedbackMessages.clear();
setStyle(null);