Author: eyala
Date: 2007-01-18 05:57:54 -0500 (Thu, 18 Jan 2007)
New Revision: 71250

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/Control.jvm.cs
Log:
Added PortletNamespace proerty

Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2007-01-18 10:53:26 UTC 
(rev 71249)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2007-01-18 10:57:54 UTC 
(rev 71250)
@@ -1,3 +1,7 @@
+2007-01-18  Eyal Alaluf <[EMAIL PROTECTED]>
+
+       * Control.jvm.cs: Added PortletNamespace property.
+
 2007-01-16  Vladimir Krasnov  <[EMAIL PROTECTED]>
 
        * TemplateControl.jvm.cs: remover TemplateSourceDirectory propery
@@ -18,7 +22,7 @@
                                through the property 'Events', but currently we 
can't see
                                better implementation)
 
-2007-01-14  Eya; Alaluf <[EMAIL PROTECTED]>
+2007-01-14  Eyal Alaluf <[EMAIL PROTECTED]>
 
        * Control.jvm.cs, Page.jvm.cs: Added TARGET_J2EE specific files.
        * Page.cs, ClientScriptManager.cs, Control.cs: Added J2EE portal

Modified: trunk/mcs/class/System.Web/System.Web.UI/Control.jvm.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/Control.jvm.cs     2007-01-18 
10:53:26 UTC (rev 71249)
+++ trunk/mcs/class/System.Web/System.Web.UI/Control.jvm.cs     2007-01-18 
10:57:54 UTC (rev 71250)
@@ -45,6 +45,22 @@
                        }
                }
 
+               internal string PortletNamespace
+               {
+                       get {
+                               if (_emptyPortletNamespace)
+                                       return null;
+
+                               if (_PortletNamespace == null) {
+                                       IPortletResponse portletResponse = 
GetRenderResponse ();
+                                       if (portletResponse != null)
+                                               _PortletNamespace = 
portletResponse.getNamespace ();
+                                       _emptyPortletNamespace = 
_PortletNamespace == null;
+                               }
+                               return _PortletNamespace;
+                       }
+               }
+
                // For J2EE Portal we need to use the portlet namespace when we 
generate control IDs.
                string GetDefaultName ()
                {
@@ -55,17 +71,10 @@
                                defaultName = defaultNameArray 
[defaultNumberID++];
                        }
 
-                       if (this != _page || _emptyPortletNamespace)
+                       if (this != _page)
                                return defaultName;
 
-                       if (_PortletNamespace == null) {
-                               IPortletResponse portletResponse = 
GetRenderResponse ();
-                               if (portletResponse != null)
-                                       _PortletNamespace = 
portletResponse.getNamespace ();
-                               _emptyPortletNamespace = _PortletNamespace == 
null;
-                       }
-
-                       return _PortletNamespace + defaultName;
+                       return PortletNamespace + defaultName;
                }
 
                // Add a variant for specifying use of portlet resolveRenderUrl

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

Reply via email to