Felix Dorner | 21 Jul 17:04

Re: Problem with Checkboxes

Hi Cdric,

>>   html form: [
>>       survey questions from:first to:last do: [ :question | question
>> renderContentOn: html ].
>>     
>
> another remark:
>
> [:question | html render: question]
>
> "It's important that you use #render:, rather than directly calling
> the #renderContentOn: method of the subcomponent. " if question is a
> component (then don't forget to use children).
>   
Question is actually not a WAComponent subclass. Anyway, thanks for the 
advice, I'll keep that in mind.

> If Question is not a subclass of WAComponent, then implement renderOn:
> instead of renderContentOn:
>   
Why? Simply to avoid confusion?

Thanks,
Felix

Gmane