You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2013/08/23 06:28:14 UTC

svn commit: r1516699 - /myfaces/core/trunk/api/src/main/java/javax/faces/component/_PassThroughAttributesMap.java

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);
     }
 
     /**