[Seaside] refresh with #updateRoot:

Philippe Marschall philippe.marschall at gmail.com
Thu Mar 5 12:17:11 UTC 2009


2009/3/4 christian ponti <pontichristian at gmail.com>:
> hi list,
> I have an application where a user has a default page with some management
> capabilities.
> For instance the user can log in and choose from different stylesheets and
> when he logs out the change is applied on the fly on the default page. This
> is done overriding #updateRoot and answering the data I need when the user
> logs out
>
> updateRoot: aRoot
>
>     super updateRoot: aRoot.
>     aRoot addStyle: self style
>
> At this point I need the user to be able to change other parts, like the
> links he wants to show on the page,  but in #updateRoot: there is no access
> to the canvas.

There is no canvas because you are int the <head> section of the HTML
document. The aRoot object is the replacement for the canvas that you
should interact with.

Cheers
Philippe


More information about the seaside mailing list