[Seaside] How to perform some action on every page refresh?
Philippe Marschall
philippe.marschall at gmail.com
Sun Sep 16 12:27:57 UTC 2007
2007/9/16, Alexandre Paes <alex.paes at streetdogstudio.com>:
> First let me thank everyone who answered my question.
>
> Sebastian Sastre wrote:
> > If I understood you right, you need what Lukas told. Just use the
> > #renderContentOn: of the compoenent like this:
> >
> > ClientsList>>renderContentOn: html
> >
> > self freshClients do:[:e| self renderClient: e on: html]
> >
> >
> > Then your method #freshClients gets them from whatever you are using to
> > store and query clients. Everytime the component is rendered (visited or
> > refreshed) you have the Seaside guarantee of that being executed
> >
>
> I must admit this was my first thought, but i actually believe i read
> somewhere that one should not call non-rendering methods from
> #renderContentOn:.
Because that's true. You should never send #renderContentOn: to a
component. You should always send #render: to the canvas with the
component as an argument.
Cheers
Philippe
> Thanks again everyone for your answers.
>
>
> Alexandre
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the seaside
mailing list