Re: javax.faces.component.MessageFactory.getLabel(FacesContext,UIComponent)

From: Mark Collette <>
Date: Mon, 29 Oct 2007 15:05:26 -0600

Ryan Lubke wrote:

> Mark Collette wrote:
>> I mostly use JSF 1.1, so I might be off with the ValueExpression
>> stuff here, but I believe that using both
>> UIComponent.getAttributes.get("label") and
>> UIComponent.getValueExpression("label") does have some validity. It's
>> really only when a UIComponent has an attribute getter method, that
>> by convention will access the local field and the ValueExpression,
>> that the UIComponent.getAttributes.get() will be sufficient. If there
>> is no getter method, the one would have to do both calls.
> I may be missing something here, but I don't see the value of a
> getAttributes() and a getValueExpression(). getAttributes().get()
> will check the the PropertyDescriptors for the component, the internal
> attributes, and value expressions.

Ahh yes, perfect, UIComponentBase.AttributesMap.get(Object) checks the
ValueExpression :)

Should I still file a bug report, or will you, with your code change idea?

- Mark Collette