refresh with #updateRoot:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

refresh with #updateRoot:

christian ponti-2
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.

It is possible to do a partial or full refresh from #updateRoot ? Better, it is the right place to do it or there is another solution?

Thanks

Christian

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: refresh with #updateRoot:

christian ponti-2

Hi list,
i found a bug in my code which caused a great confusion and then my previous request.
Sorry for that, and now I understand why nobody answered, the request was probably not clear, and even worse .. :(

Christian

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: refresh with #updateRoot:

Philippe Marschall
In reply to this post by christian ponti-2
2009/3/4 christian ponti <[hidden email]>:

> 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
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: refresh with #updateRoot:

christian ponti-2
hi Philippe


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.


thanks for the answer, that clarify the usage of #updateRoot:

Christian

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside