Author: igorz
Date: 2008-02-12 05:01:23 -0500 (Tue, 12 Feb 2008)
New Revision: 95487

Modified:
   branches/mainsoft/gh2.2/mcs/class/System.Web/System.Web.UI/Control.jvm.cs
Log:
implement such JSF API for being compatible with using of log4j-1.2.13.jar with 
myfaces.
fix BUG #9871

Modified: 
branches/mainsoft/gh2.2/mcs/class/System.Web/System.Web.UI/Control.jvm.cs
===================================================================
--- branches/mainsoft/gh2.2/mcs/class/System.Web/System.Web.UI/Control.jvm.cs   
2008-02-12 09:45:14 UTC (rev 95486)
+++ branches/mainsoft/gh2.2/mcs/class/System.Web/System.Web.UI/Control.jvm.cs   
2008-02-12 10:01:23 UTC (rev 95487)
@@ -41,6 +41,8 @@
        public partial class Control : UIComponent, StateHolder
        {
                ComponentChildrenList _childrenList;
+               HashMap _attributes;
+               HashMap _facets;
 
                protected override void addFacesListener (FacesListener __p1) {
                        throw new Exception ("The method or operation is not 
implemented.");
@@ -71,7 +73,7 @@
                }
 
                public override Map getAttributes () {
-                       throw new Exception ("The method or operation is not 
implemented.");
+                       return _attributes ?? (_attributes = new HashMap ());
                }
 
                public override int getChildCount () {
@@ -104,7 +106,7 @@
                }
 
                public override Map getFacets () {
-                       throw new Exception ("The method or operation is not 
implemented.");
+                       return _facets ?? (_facets = new HashMap ());
                }
 
                public override Iterator getFacetsAndChildren () {
@@ -117,7 +119,7 @@
                }
 
                public override string getId () {
-                       throw new Exception ("The method or operation is not 
implemented.");
+                       return ID;
                }
 
                public override UIComponent getParent () {

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

Reply via email to