You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/08/03 12:13:17 UTC

svn commit: r227192 - /myfaces/api/trunk/src/java/javax/faces/component/_ComponentAttributesMap.java

Author: mmarinschek
Date: Wed Aug  3 03:13:11 2005
New Revision: 227192

URL: http://svn.apache.org/viewcvs?rev=227192&view=rev
Log:
thanks to Udo Schnurpfeil for his suggestion on _ComponentAttributesMap.get

Modified:
    myfaces/api/trunk/src/java/javax/faces/component/_ComponentAttributesMap.java

Modified: myfaces/api/trunk/src/java/javax/faces/component/_ComponentAttributesMap.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/_ComponentAttributesMap.java?rev=227192&r1=227191&r2=227192&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/_ComponentAttributesMap.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/_ComponentAttributesMap.java Wed Aug  3 03:13:11 2005
@@ -135,7 +135,15 @@
         }
         else
         {
-            return _attributes.get(key);
+            Object mapValue =  _attributes.get(key);
+
+            if (mapValue != null)
+            {
+            	return mapValue;
+            }
+
+            ValueBinding vb = _component.getValueBinding((String) key);
+            return vb != null ? vb.getValue(FacesContext.getCurrentInstance()) : null;
         }
     }