You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mb...@apache.org on 2007/03/15 23:23:56 UTC
svn commit: r518783 -
/myfaces/core/branches/jsf12/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java
Author: mbr
Date: Thu Mar 15 15:23:53 2007
New Revision: 518783
URL: http://svn.apache.org/viewvc?view=rev&rev=518783
Log:
use ValueExpression instead of ValueBinding
Modified:
myfaces/core/branches/jsf12/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java
Modified: myfaces/core/branches/jsf12/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java?view=diff&rev=518783&r1=518782&r2=518783
==============================================================================
--- myfaces/core/branches/jsf12/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java (original)
+++ myfaces/core/branches/jsf12/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java Thu Mar 15 15:23:53 2007
@@ -27,9 +27,9 @@
import java.util.Map;
import java.util.Set;
+import javax.el.ValueExpression;
import javax.faces.FacesException;
import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
/**
* A custom implementation of the Map interface, where get and put calls
@@ -234,10 +234,10 @@
}
// is there a value-binding to read?
- ValueBinding vb = _component.getValueBinding((String) key);
- if (vb != null)
+ ValueExpression ve = _component.getValueExpression((String) key);
+ if (ve != null)
{
- return vb.getValue(FacesContext.getCurrentInstance());
+ return ve.getValue(FacesContext.getCurrentInstance().getELContext());
}
// no value found