Author: igorz
Date: 2007-12-09 08:26:17 -0500 (Sun, 09 Dec 2007)
New Revision: 91000

Modified:
   
branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/BaseFacesStateManager.cs
   
branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/ServletFacesStateManager.cs
   branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Phantom/Stubs.cs
Log:
performance optimization in Save/Load state 

Modified: 
branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/BaseFacesStateManager.cs
===================================================================
--- 
branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/BaseFacesStateManager.cs
  2007-12-09 10:31:44 UTC (rev 90999)
+++ 
branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/BaseFacesStateManager.cs
  2007-12-09 13:26:17 UTC (rev 91000)
@@ -41,7 +41,7 @@
                                return null;
                        }
 
-                       Object serializedComponentStates = 
viewRoot.processSaveState (facesContext);
+                       Object serializedComponentStates = ((UIComponent) 
viewRoot.getChildren ().get (0)).processSaveState (facesContext);
                        //Locale is a state attribute of UIViewRoot and need 
not be saved explicitly
                        Console.WriteLine ("Exiting getComponentStateToSave");
                        return serializedComponentStates;

Modified: 
branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/ServletFacesStateManager.cs
===================================================================
--- 
branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/ServletFacesStateManager.cs
       2007-12-09 10:31:44 UTC (rev 90999)
+++ 
branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/ServletFacesStateManager.cs
       2007-12-09 13:26:17 UTC (rev 91000)
@@ -57,7 +57,7 @@
                        }
 
                        // now ask the view root component to restore its state
-                       uiViewRoot.processRestoreState (facesContext, 
serializedComponentStates);
+                       ((UIComponent) uiViewRoot.getChildren ().get 
(0)).processRestoreState (facesContext, serializedComponentStates);
 
                        Console.WriteLine ("Exiting restoreComponentState");
                }

Modified: 
branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Phantom/Stubs.cs
===================================================================
--- branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Phantom/Stubs.cs  
2007-12-09 10:31:44 UTC (rev 90999)
+++ branches/mainsoft/JSF/mcs/class/Mainsoft.Web/Mainsoft.Web.Phantom/Stubs.cs  
2007-12-09 13:26:17 UTC (rev 91000)
@@ -30,7 +30,8 @@
        public class PageMapper
        {
                public static Type GetObjectType (HttpContext context, string 
url) {
-                       throw new InvalidOperationException ();
+                       return null;
+                       //throw new InvalidOperationException ();
                }
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to