This is an automated email from the ASF dual-hosted git repository. theigl pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/master by this push: new d248853305 WICKET-6982 Rely on conditional logic in `Page.isPageStateless()` instead of forcing initialization for all pages (#526) d248853305 is described below commit d248853305e6a0e4f6e95fac93f56ddceb6a17aa Author: Thomas Heigl <thomas.he...@gmail.com> AuthorDate: Mon May 16 22:41:34 2022 +0200 WICKET-6982 Rely on conditional logic in `Page.isPageStateless()` instead of forcing initialization for all pages (#526) --- .../apache/wicket/core/request/handler/ListenerRequestHandler.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wicket-core/src/main/java/org/apache/wicket/core/request/handler/ListenerRequestHandler.java b/wicket-core/src/main/java/org/apache/wicket/core/request/handler/ListenerRequestHandler.java index 91b8b2a768..80d0d5b098 100644 --- a/wicket-core/src/main/java/org/apache/wicket/core/request/handler/ListenerRequestHandler.java +++ b/wicket-core/src/main/java/org/apache/wicket/core/request/handler/ListenerRequestHandler.java @@ -167,12 +167,6 @@ public class ListenerRequestHandler + "' has been removed from page."); } - if (page instanceof Page) - { - // initialize the page to be able to check whether it is stateless - ((Page)page).internalInitialize(); - } - RedirectPolicy policy = page.isPageStateless() ? RedirectPolicy.NEVER_REDIRECT : RedirectPolicy.AUTO_REDIRECT;