dev@javaserverfaces.java.net

Re: [280-EZComp] Seeking Retroactive Review

From: Ed Burns <Ed.Burns_at_Sun.COM>
Date: Tue, 07 Oct 2008 12:29:53 -0700

RL> SECTION: Modified Files
RL> ----------------------------
RL> M jsf-api/src/javax/faces/component/UIComponent.java
RL> - remove getAttrs() method in favor of new ELResolver described below.
RL> - remove unecessary transient modifier from instance variables

Ok.

RL> M jsf-ri/src/com/sun/faces/el/ELUtils.java
RL> - add the CompositeComponentAttributesELResolver after the ImplicitObjectELResolver
RL>

Ok.

RL> A jsf-ri/src/com/sun/faces/el/CompositeComponentAttributesELResolver.java

RL> - Given an expression such as #{compositeComponent.attrs.foo}:
RL> * the ImplicitObjectELResolver resolves compositeComponent
RL> * CompositeComponentAttributesELResolver will if base is a composite component
RL> and property is 'attrs' return a Map that will evaluate any
RL> ValueExpressions stored directly within the composite component's
RL> attribute map.
RL> * MapELResolver is passed an instance of the ExpressionEvalMap and calls
RL> get("foo") which will result in the value expression associated with
RL> foo to be evaluated.

r=edburns.

Let me know when you check this in so I can update the spec prose
document and diagrams.

-- 
| ed.burns_at_sun.com  | office: 408 884 9519 OR x31640
| homepage:         | http://ridingthecrest.com/