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 2010/11/30 17:04:07 UTC

svn commit: r1040600 - in /wicket/trunk/wicket/src/main/java/org/apache/wicket: markup/html/form/StatelessForm.java settings/IRequestCycleSettings.java

Author: mgrigorov
Date: Tue Nov 30 16:04:07 2010
New Revision: 1040600

URL: http://svn.apache.org/viewvc?rev=1040600&view=rev
Log:
RequestCycle#setRedirect(boolean) is no more available.

Clean all places that mention it.

Modified:
    wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/StatelessForm.java
    wicket/trunk/wicket/src/main/java/org/apache/wicket/settings/IRequestCycleSettings.java

Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/StatelessForm.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/StatelessForm.java?rev=1040600&r1=1040599&r2=1040600&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/StatelessForm.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/StatelessForm.java Tue Nov 30 16:04:07 2010
@@ -61,10 +61,6 @@ public class StatelessForm<T> extends Fo
 	@Override
 	public void process(IFormSubmitter submittingComponent)
 	{
-		// set redirect to true for a stateless form.
-		// TODO: NG
-		// setRedirect(true);
-
 		super.process(submittingComponent);
 	}
 

Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/settings/IRequestCycleSettings.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/settings/IRequestCycleSettings.java?rev=1040600&r1=1040599&r2=1040600&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/settings/IRequestCycleSettings.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/settings/IRequestCycleSettings.java Tue Nov 30 16:04:07 2010
@@ -20,7 +20,6 @@ import java.util.List;
 
 import org.apache.wicket.Session;
 import org.apache.wicket.markup.html.pages.BrowserInfoPage;
-import org.apache.wicket.request.cycle.RequestCycle;
 import org.apache.wicket.response.filter.IResponseFilter;
 import org.apache.wicket.settings.IExceptionSettings.UnexpectedExceptionDisplay;
 import org.apache.wicket.util.time.Duration;
@@ -62,12 +61,7 @@ import org.apache.wicket.util.time.Durat
  * </ul>
  * </li>
  * </ul>
- * Note that this parameter sets the default behavior, but that you can manually set whether any
- * redirecting is done by calling method RequestCycle.setRedirect. Setting the redirect flag when
- * the application is configured to use ONE_PASS_RENDER, will result in a redirect of type
- * REDIRECT_TO_RENDER. When the application is configured to use REDIRECT_TO_RENDER or
- * REDIRECT_TO_BUFFER, setting the redirect flag to false, will result in that request begin
- * rendered and streamed in one pass.
+ * 
  * <p>
  * More documentation is available about each setting in the setter method for the property.
  * 
@@ -81,9 +75,7 @@ public interface IRequestCycleSettings
 	public enum RenderStrategy {
 		/**
 		 * All logical parts of a request (the action and render part) are handled within the same
-		 * request. To enable a client side redirect for a request, users can set the 'redirect'
-		 * property of {@link RequestCycle}to true (getRequestCycle.setRedirect(true)), after which
-		 * the behavior will be like RenderStragegy 'REDIRECT_TO_RENDER'.
+		 * request.
 		 * <p>
 		 * This strategy is more efficient than the 'REDIRECT_TO_RENDER' strategy, and doesn't have
 		 * some of the potential problems of it, it also does not solve the double submit problem.
@@ -106,9 +98,7 @@ public interface IRequestCycleSettings
 		 * construction of a bookmarkable page or the execution of a IRequestListener handler) is
 		 * handled by a separate request by issuing a redirect request to the browser. This is
 		 * commonly known as the 'redirect after submit' pattern, though in our case, we use it for
-		 * GET and POST requests instead of just the POST requests. To cancel the client side
-		 * redirect for a request, users can set the 'redirect' property of {@link RequestCycle}to
-		 * false (getRequestCycle.setRedirect(false)).
+		 * GET and POST requests instead of just the POST requests.
 		 * <p>
 		 * This pattern solves the 'refresh' problem. While it is a common feature of browsers to
 		 * refresh/ reload a web page, this results in problems in many dynamic web applications.
@@ -252,12 +242,6 @@ public interface IRequestCycleSettings
 	 * strategy, as it shields you from the double submit problem, while being more efficient and
 	 * less error prone regarding to detachable models.</li>
 	 * </ul>
-	 * Note that this parameter sets the default behavior, but that you can manually set whether any
-	 * redirecting is done by calling method RequestCycle.setRedirect. Setting the redirect flag
-	 * when the application is configured to use ONE_PASS_RENDER, will result in a redirect of type
-	 * REDIRECT_TO_RENDER. When the application is configured to use REDIRECT_TO_RENDER or
-	 * REDIRECT_TO_BUFFER, setting the redirect flag to false, will result in that request begin
-	 * rendered and streamed in one pass.
 	 * 
 	 * @param renderStrategy
 	 *            the render strategy that should be used by default.