[Seaside] Problem with Checkboxes

Julian Fitzell julian at fitzell.ca
Mon Jul 21 15:18:33 UTC 2008

On Mon, Jul 21, 2008 at 11:04 PM, Felix Dorner <felix_do at web.de> wrote:
>> If Question is not a subclass of WAComponent, then implement renderOn:
>> instead of renderContentOn:
> Why? Simply to avoid confusion?

Because then you can pass it to "html render:" :)

Any object that is renderable should implement #renderOn:. WAComponent
implement that to do a bunch of other stuff and then calls
#renderContentOn: for its subclasses.

Obviously if you're the only one using your class, you can call it
#fooBarBaz: if you feel like, but if you implement #renderOn: you can

html render: aCollectionOfQuestions


html div id: 'foo'; with: aQuestion

And yes, it's just sort of standard I guess.


More information about the seaside mailing list