You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2012/03/15 10:55:49 UTC

[3/3] git commit: WICKET-4454 Repaint the initial state of the page if the page is expired, a new one is freshly created and the requested component is not available

WICKET-4454 Repaint the initial state of the page if the page is expired, a new one is freshly created and the requested component is not available


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/cc16ee6b
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/cc16ee6b
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/cc16ee6b

Branch: refs/heads/wicket-1.5.x
Commit: cc16ee6b93e946ea6e630be160a4b23645e8e3ea
Parents: 5d70609
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Mar 15 11:44:27 2012 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Mar 15 11:53:00 2012 +0200

----------------------------------------------------------------------
 .../handler/ListenerInterfaceRequestHandler.java   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/cc16ee6b/wicket-core/src/main/java/org/apache/wicket/request/handler/ListenerInterfaceRequestHandler.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/request/handler/ListenerInterfaceRequestHandler.java b/wicket-core/src/main/java/org/apache/wicket/request/handler/ListenerInterfaceRequestHandler.java
index 74452c6..70d1b7c 100644
--- a/wicket-core/src/main/java/org/apache/wicket/request/handler/ListenerInterfaceRequestHandler.java
+++ b/wicket-core/src/main/java/org/apache/wicket/request/handler/ListenerInterfaceRequestHandler.java
@@ -194,7 +194,7 @@ public class ListenerInterfaceRequestHandler
 				: RedirectPolicy.AUTO_REDIRECT;
 			final IPageProvider pageProvider = new PageProvider(page);
 
-			if (freshPage && isStateless == false)
+			if (freshPage && (isStateless == false || component == null))
 			{
 				// A listener interface is invoked on an expired page.