[Seaside] #render: or #call: components.
stephane ducasse
stephane.ducasse at free.fr
Tue Apr 29 06:04:04 UTC 2008
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
>
More information about the seaside
mailing list