[Seaside] body attributes?

Michel Bany m.bany at wanadoo.fr
Sat Sep 18 20:04:01 CEST 2004


Andreas Nilsson a écrit :

> I'm trying to do exactly the same thing via 'html document root 
> bodyAttributes at: put:' but I can't get it to work.
> Anybody care to explain what's so obvious about #updateRoot:? I can't 
> even find any methods with that name.
>
You need to implement this method in your component to override the 
default implementation
from the superclass. In your method send #bodyAttributes to the 
parameter and #at:put:
Make sure you pass on the #updateRoot: message to super.
See WAAllTests for a (simple) exemple.
Michel.

> /Adde
>
> On 2004-09-09, at 00.49, radoslav hodnicak wrote:
>
>> On Thu, 9 Sep 2004, radoslav hodnicak wrote:
>>
>>>
>>> the body element in a component? In 2.3 I could just use "html document
>>> body attributeAt:put:" ... I'm stuffing some javascript for onLoad 
>>> there
>>
>>
>> Doh. updateRoot:
>> /me slaps forehead
>>
>> _______________________________________________
>> Seaside mailing list
>> Seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/listinfo/seaside
>>
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
>


More information about the Seaside mailing list