You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by th...@apache.org on 2022/07/13 09:43:59 UTC

[wicket] branch wicket-9.x updated: WICKET-6982 Rely on conditional logic in `Page.isPageStateless()` instead of forcing initialization for all pages (#526)

This is an automated email from the ASF dual-hosted git repository.

theigl pushed a commit to branch wicket-9.x
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/wicket-9.x by this push:
     new 77634d956e WICKET-6982 Rely on conditional logic in `Page.isPageStateless()` instead of forcing initialization for all pages (#526)
77634d956e is described below

commit 77634d956e0b78884560ec6391feba5f2e2ab7a1
Author: Thomas Heigl <th...@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)
    
    (cherry picked from commit d248853305e6a0e4f6e95fac93f56ddceb6a17aa)
---
 .../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;