+2007-01-18 Eyal Alaluf <eyala@mainsoft.com>
+
+ * Control.jvm.cs: Added PortletNamespace property.
+
2007-01-16 Vladimir Krasnov <vladimirk@mainsoft.com>
* TemplateControl.jvm.cs: remover TemplateSourceDirectory propery
through the property 'Events', but currently we can't see
better implementation)
-2007-01-14 Eya; Alaluf <eyala@mainsoft.com>
+2007-01-14 Eyal Alaluf <eyala@mainsoft.com>
* Control.jvm.cs, Page.jvm.cs: Added TARGET_J2EE specific files.
* Page.cs, ClientScriptManager.cs, Control.cs: Added J2EE portal
}\r
}\r
\r
+ internal string PortletNamespace\r
+ {\r
+ get {\r
+ if (_emptyPortletNamespace)\r
+ return null;\r
+\r
+ if (_PortletNamespace == null) {\r
+ IPortletResponse portletResponse = GetRenderResponse ();\r
+ if (portletResponse != null)\r
+ _PortletNamespace = portletResponse.getNamespace ();\r
+ _emptyPortletNamespace = _PortletNamespace == null;\r
+ }\r
+ return _PortletNamespace;\r
+ }\r
+ }\r
+\r
// For J2EE Portal we need to use the portlet namespace when we generate control IDs.\r
string GetDefaultName ()\r
{\r
defaultName = defaultNameArray [defaultNumberID++];\r
}\r
\r
- if (this != _page || _emptyPortletNamespace)\r
+ if (this != _page)\r
return defaultName;\r
\r
- if (_PortletNamespace == null) {\r
- IPortletResponse portletResponse = GetRenderResponse ();\r
- if (portletResponse != null)\r
- _PortletNamespace = portletResponse.getNamespace ();\r
- _emptyPortletNamespace = _PortletNamespace == null;\r
- }\r
-\r
- return _PortletNamespace + defaultName;\r
+ return PortletNamespace + defaultName;\r
}\r
\r
// Add a variant for specifying use of portlet resolveRenderUrl\r