You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/02/15 00:18:07 UTC

svn commit: r377879 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/dojo/DojoConfig.java

Author: werpu
Date: Tue Feb 14 15:18:05 2006
New Revision: 377879

URL: http://svn.apache.org/viewcvs?rev=377879&view=rev
Log:
added serialization due to request storage and a huge warning

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/dojo/DojoConfig.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/dojo/DojoConfig.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/dojo/DojoConfig.java?rev=377879&r1=377878&r2=377879&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/dojo/DojoConfig.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/dojo/DojoConfig.java Tue Feb 14 15:18:05 2006
@@ -16,6 +16,8 @@
 
 package org.apache.myfaces.custom.dojo;
 
+import java.io.Serializable;
+
 /**
  * Dojo configuration holder helper
  * this is a helper class to generate
@@ -25,11 +27,26 @@
  * 
  * the toString method generates a full djconfig
  * 
+ * Warning if you adjust the dojo config params
+ * do it before rendering
+ * because this stuff is shared in the request
+ * as a singleton value in normal circumstances!
+ * 
+ * (unless you want to influence the dojo config
+ * seriously afterwards please, follow this guideline
+ * use the decode phase or something similar if not available)
+ * 
  * @author Werner Punz (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
-public class DojoConfig
+public class DojoConfig implements Serializable
 {
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 1L;
+
+
     private static final String CONFIG_FOOTER = "}; \n";
 
 
@@ -49,8 +66,6 @@
     Boolean _bindEncoding         = null;
     Boolean _ignoreClassNames     = null;
     Boolean _preventBackButtonFix = null;
-    
-    //TODO add this to the initializer tag
     Boolean _debugAtAllCosts      = null;
     
     private final void createConfigEntry(StringBuffer target, String name, Object toCheck) {