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/12/25 17:13:07 UTC

svn commit: r358982 - /myfaces/api/trunk/src/java/javax/faces/webapp/AttributeTag.java

Author: mmarinschek
Date: Sun Dec 25 08:13:02 2005
New Revision: 358982

URL: http://svn.apache.org/viewcvs?rev=358982&view=rev
Log:
fixed bug where Object was casted to a string.

Modified:
    myfaces/api/trunk/src/java/javax/faces/webapp/AttributeTag.java

Modified: myfaces/api/trunk/src/java/javax/faces/webapp/AttributeTag.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/webapp/AttributeTag.java?rev=358982&r1=358981&r2=358982&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/webapp/AttributeTag.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/webapp/AttributeTag.java Sun Dec 25 08:13:02 2005
@@ -63,7 +63,7 @@
             Object value = getValue();
 
             if(value != null)
-                component.getAttributes().put(name, getValue());
+                component.getAttributes().put(name, value);
         }
         return Tag.SKIP_BODY;
     }
@@ -90,13 +90,13 @@
         }
     }
 
-    private String getValue()
+    private Object getValue()
     {
         if (UIComponentTag.isValueReference(_value))
         {
             FacesContext facesContext = FacesContext.getCurrentInstance();
             ValueBinding vb = facesContext.getApplication().createValueBinding(_value);
-            return (String)vb.getValue(facesContext);
+            return vb.getValue(facesContext);
         }
         else
         {