myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1516699 - /myfaces/core/trunk/api/src/main/java/javax/faces/component/_PassThroughAttributesMap.java
Date Fri, 23 Aug 2013 04:28:14 GMT
Author: lu4242
Date: Fri Aug 23 04:28:14 2013
New Revision: 1516699

URL: http://svn.apache.org/r1516699
Log:
MYFACES-3686 Implement f:passThroughAttribute and f:passThroughAttributes (fix map creation)

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/_PassThroughAttributesMap.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/_PassThroughAttributesMap.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/_PassThroughAttributesMap.java?rev=1516699&r1=1516698&r2=1516699&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/_PassThroughAttributesMap.java
(original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/_PassThroughAttributesMap.java
Fri Aug 23 04:28:14 2013
@@ -57,10 +57,6 @@ class _PassThroughAttributesMap implemen
         return attributes == null ? Collections.EMPTY_MAP : attributes;
     }
     
-    /**
-     * TODO: Document why this method is necessary, and why it doesn't try to
-     * compare the _component field.
-     */
     @Override
     public boolean equals(Object obj)
     {
@@ -100,12 +96,14 @@ class _PassThroughAttributesMap implemen
 
     public Object put(String key, Object value)
     {
-        return getUnderlyingMap().put(key, value);
+        return _component.getStateHelper().put(
+            UIComponentBase.PropertyKeys.passThroughAttributesMap, key, value);
     }
 
     public Object remove(Object key)
     {
-        return getUnderlyingMap().remove(key);
+        return _component.getStateHelper().remove(
+            UIComponentBase.PropertyKeys.passThroughAttributesMap, key);
     }
 
     /**



Mime
View raw message