[Seaside] #render: or #call: components.

David Zmick dz0004455 at gmail.com
Sat May 3 12:49:30 UTC 2008


ok, thank you, and sorry for a delayed reply, my internet has been down

On Tue, Apr 29, 2008 at 12:04 AM, stephane ducasse <stephane.ducasse at free.fr>
wrote:

> Yes and follow what ramon is saying.
> you should not call renderContentOn: on your own.
>
>
>
> > > I know that this is probably a very bad practice, but I have
> > > initialized component, eg. a instance variable 'bodyComp'
> > >
> > > ok, I will show some code:
> > >
> > > RootComponent>>initilaize
> > >  super initialize.
> > >  self bodyComp: BodyComponent new.
> > >
> > > RootComponent>>renderContentOn: html
> > >  "all the head stuff"
> > >   bodyComponent renderContentOn: html
> > >   "etc."
> > >
> > >
> > Don't do that, you should render subcomponents with #render:, never call
> > renderContentOn: of another component.
> >
> > RootComponent>>renderContentOn: html
> >    html render: bodyComponent
> >
> > Ramon Leon
> > http://onsmalltalk.com
> >
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



-- 
David Zmick
/dz0004455\
http://dz0004455.googlepages.com
http://dz0004455.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080503/2811dd70/attachment.htm


More information about the seaside mailing list