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/08/14 08:31:14 UTC
git commit: WICKET-4699
Updated Branches:
refs/heads/master 1e27973ce -> 3b6d99668
WICKET-4699
Use RequestCycle.get() instead of requiring it as constructor parameter.
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/3b6d9966
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/3b6d9966
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/3b6d9966
Branch: refs/heads/master
Commit: 3b6d996689a60a33de0e6d5d182b6a9c571dcf02
Parents: 1e27973
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Tue Aug 14 09:30:23 2012 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Tue Aug 14 09:30:23 2012 +0300
----------------------------------------------------------------------
.../wicket/NonResettingRestartException.java | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/3b6d9966/wicket-core/src/main/java/org/apache/wicket/NonResettingRestartException.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/NonResettingRestartException.java b/wicket-core/src/main/java/org/apache/wicket/NonResettingRestartException.java
index 24338d6..6e80b66 100644
--- a/wicket-core/src/main/java/org/apache/wicket/NonResettingRestartException.java
+++ b/wicket-core/src/main/java/org/apache/wicket/NonResettingRestartException.java
@@ -42,13 +42,10 @@ public class NonResettingRestartException extends RequestHandlerStack.ReplaceHan
* the class of the new page that should be rendered
* @param params
* the page parameters to use for the new page
- * @param cycle
- * the request cycle to use to find the Response`s
*/
- public NonResettingRestartException(final Class<? extends Page> pageClass,
- final PageParameters params, final RequestCycle cycle)
+ public NonResettingRestartException(final Class<? extends Page> pageClass, final PageParameters params)
{
- this(pageClass, params, cycle, RenderPageRequestHandler.RedirectPolicy.AUTO_REDIRECT);
+ this(pageClass, params, RenderPageRequestHandler.RedirectPolicy.AUTO_REDIRECT);
}
/**
@@ -58,16 +55,15 @@ public class NonResettingRestartException extends RequestHandlerStack.ReplaceHan
* the class of the new page that should be rendered
* @param params
* the page parameters to use for the new page
- * @param cycle
- * the request cycle to use to find the Response`s
* @param redirectPolicy
* the policy that mandates whether to do a redirect
*/
public NonResettingRestartException(final Class<? extends Page> pageClass,
- final PageParameters params, final RequestCycle cycle, RenderPageRequestHandler.RedirectPolicy redirectPolicy)
+ final PageParameters params, RenderPageRequestHandler.RedirectPolicy redirectPolicy)
{
super(createRequestHandler(pageClass, params, redirectPolicy), true);
+ RequestCycle cycle = RequestCycle.get();
Response response = cycle.getResponse();
if (response instanceof IMetaDataBufferingWebResponse)
{