On Wed, Apr 8, 2009 at 2:23 PM, Andy Schwartz
<andy.schwartz@oracle.com> wrote:
Dan Allen wrote On 4/8/2009 1:59 PM ET:
In general I agree with Ken. I have been able to measure considerable performance degradation from not qualifying any EL expression. However, in this particular case, Facelets always checks its own context first before it even delegates to an EL resolver (since it has control over the template and hence the initial EL lookup.
Though if the attribute in question isn't actually set by the user of the composite component, then we won't find the attribute in the component's attribute map, which presumably means that we end up going through normal EL/managed bean resolving, which gets us back to the performance hit.
Yes, very true. In fact, that brings up a very important point. Can we expose the facelets variable map as an implicit variable so that we can look in the map and stop looking if it doesn't not exist?? This would be relevant in the case that David cited, when we are accessing attribute values in a composition.
<h:graphicImage style="border: none" value="#{faceletsContext.image}"/>