You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2005/08/12 09:29:04 UTC

svn commit: r232222 - in /cocoon/branches/BRANCH_2_1_X/src/blocks/portal: conf/portal.xconf java/org/apache/cocoon/portal/event/aspect/impl/ActionCounterEventAspect.java

Author: cziegeler
Date: Fri Aug 12 00:28:58 2005
New Revision: 232222

URL: http://svn.apache.org/viewcvs?rev=232222&view=rev
Log:
Disable action counter by default

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/conf/portal.xconf
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/event/aspect/impl/ActionCounterEventAspect.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/conf/portal.xconf
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/conf/portal.xconf?rev=232222&r1=232221&r2=232222&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/conf/portal.xconf (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/conf/portal.xconf Fri Aug 12 00:28:58 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!--
-  Copyright 1999-2004 The Apache Software Foundation
+  Copyright 1999-2005 The Apache Software Foundation
 
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
@@ -42,8 +42,9 @@
         <!-- Uncomment this aspect when marshalling JSR168 portlet events 
         <aspect type="convertable"/>
         -->
+        <!-- Use the action counter with great care. We recommend turning it off. -->
         <!-- Remove action-counter when using PageLabels -->
-        <aspect type="action-counter"/>
+        <!-- aspect type="action-counter"/ -->
         <aspect type="frame"/>
         <aspect type="link"/>
         <aspect type="full-screen-coplet"/>

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/event/aspect/impl/ActionCounterEventAspect.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/event/aspect/impl/ActionCounterEventAspect.java?rev=232222&r1=232221&r2=232222&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/event/aspect/impl/ActionCounterEventAspect.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/event/aspect/impl/ActionCounterEventAspect.java Fri Aug 12 00:28:58 2005
@@ -1,5 +1,5 @@
 /*
- * Copyright 1999-2002,2004 The Apache Software Foundation.
+ * Copyright 1999-2002,2004-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,10 +28,17 @@
 import org.apache.cocoon.portal.event.aspect.EventAspectContext;
 
 /**
+ * This aspect "disables" the back button of the browser and tries to avoid
+ * problems with the user browsing in multiple windows.
+ * This event attaches a unique number to each request. For each user only the
+ * current number is "active". Every request comming in containing an older
+ * number is disregarded and therefore ignored.
+ * WARNING: This aspect solves some problems while introducing new ones. Some
+ *          features of the portal do NOT work when this aspect is used.
  *
  * @author <a href="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
  * @author <a href="mailto:volker.schmitt@basf-it-services.com">Volker Schmitt</a>
- * 
+ *
  * @version CVS $Id$
  */
 public class ActionCounterEventAspect