[cvs] expresso commit by lhamel: clearing object cache means clearing both

JCorporate Ltd jcorp at jcorporate.com
Mon Oct 30 08:30:46 UTC 2006


Log Message:
-----------
clearing object cache means clearing both ordered and unordered caches

Modified Files:
--------------
    expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller:
        ControllerResponse.java

Revision Data
-------------
Index: ControllerResponse.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller/ControllerResponse.java,v
retrieving revision 1.60
retrieving revision 1.61
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller/ControllerResponse.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller/ControllerResponse.java -u -r1.60 -r1.61
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller/ControllerResponse.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller/ControllerResponse.java
@@ -461,7 +461,7 @@
      * @throws ControllerException upon error
      */
     public void setFormCache() throws ControllerException {
-        getDefaultForm().saveForm(getRequest());
+        getDefaultForm().saveForm(getExpressoRequest());
     }
 
     /* setFormCache() */
@@ -647,10 +647,9 @@
      * @throws ControllerException upon error reading from the session
      */
     public ErrorCollection getErrors() throws ControllerException {
-        ErrorCollection errs = (ErrorCollection) getExpressoRequest().getSession()
-                .getAttribute(Globals.ERROR_KEY);
 
-        return errs;
+        return (ErrorCollection) getExpressoRequest().getSession()
+                .getAttribute(Globals.ERROR_KEY);
     }
 
     /**
@@ -1890,6 +1889,7 @@
      */
     public void clearInputCache() {
         inputCache = null;
+        inputCacheOrdered = null;
     }
 
     /* clearInputCache() */
@@ -1899,6 +1899,7 @@
      */
     public void clearOutputCache() {
         outputCache = null;
+        outputCacheOrdered = null;
     }
 
     /* clearOutputCache() */
@@ -1907,6 +1908,7 @@
      */
     public void clearTransitionCache() {
         transitionCache = null;
+        transitionCacheOrdered = null;
     }
 
     /* clearTransitionCache() */


More information about the cvs mailing list