incubator-isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danhayw...@apache.org
Subject svn commit: r1378000 - /incubator/isis/trunk/framework/viewer/wicket/wicket-viewer/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketApplication.java
Date Tue, 28 Aug 2012 07:08:00 GMT
Author: danhaywood
Date: Tue Aug 28 07:08:00 2012
New Revision: 1378000

URL: http://svn.apache.org/viewvc?rev=1378000&view=rev
Log:
ISIS-14: enable wicket "redirect-after-post"

Modified:
    incubator/isis/trunk/framework/viewer/wicket/wicket-viewer/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketApplication.java

Modified: incubator/isis/trunk/framework/viewer/wicket/wicket-viewer/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketApplication.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/viewer/wicket/wicket-viewer/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketApplication.java?rev=1378000&r1=1377999&r2=1378000&view=diff
==============================================================================
--- incubator/isis/trunk/framework/viewer/wicket/wicket-viewer/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketApplication.java
(original)
+++ incubator/isis/trunk/framework/viewer/wicket/wicket-viewer/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketApplication.java
Tue Aug 28 07:08:00 2012
@@ -43,6 +43,9 @@ import org.apache.wicket.markup.html.IHe
 import org.apache.wicket.markup.html.WebPage;
 import org.apache.wicket.markup.html.internal.HtmlHeaderContainer;
 import org.apache.wicket.protocol.http.WebRequest;
+import org.apache.wicket.settings.IApplicationSettings;
+import org.apache.wicket.settings.IRequestCycleSettings;
+import org.apache.wicket.settings.IRequestCycleSettings.RenderStrategy;
 import org.apache.wicket.util.convert.ConverterLocator;
 
 import org.apache.isis.core.commons.authentication.AuthenticationSession;
@@ -240,6 +243,13 @@ public class IsisWicketApplication exten
     // Wicket Hooks
     // /////////////////////////////////////////////////
 
+    @Override
+    public IRequestCycleSettings getRequestCycleSettings() {
+        final IRequestCycleSettings requestCycleSettings = super.getRequestCycleSettings();
+        requestCycleSettings.setRenderStrategy(IRequestCycleSettings.REDIRECT_TO_RENDER);
+        return requestCycleSettings;
+    }
+    
     /**
      * Installs a {@link AuthenticatedWebSessionForIsis custom implementation}
      * of Wicket's own {@link AuthenticatedWebSession}, effectively associating



Mime
View raw message