Udo,

Thank you very much - this opens some doors....

John 

-----Original Message-----
From: Udo Schnurpfeil [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 01, 2006 2:34 PM
To: MyFaces Discussion
Subject: Re: [Tobago] - How to programmatically set the label attribute
of tc:box

You can set any attribute of any UIComponent in JSF like:

   component.getAttributes().put(key, value);

where in your case key is "label" and value is your label.
"label" should be used as TobagoConstants.ATTR_LABEL

Hope that helps

Udo

P.S.: in later versions there might be a setter for the label.

John schrieb:
> Ok, I have the box bound to a UIPanel component.
>  
> But there's no setValue() method.
>  
> Ok... It's in some sub-facet or attribute or something, but nothing I 
> try works....
>  
> What is the trick?  Help!
>  
> John

Reply via email to