21 Jul 17:18
Re: Problem with Checkboxes
From: Julian Fitzell <julian <at> fitzell.ca>
Subject: Re: Problem with Checkboxes
Newsgroups: gmane.comp.lang.smalltalk.squeak.seaside
Date: 2008-07-21 15:18:33 GMT
Subject: Re: Problem with Checkboxes
Newsgroups: gmane.comp.lang.smalltalk.squeak.seaside
Date: 2008-07-21 15:18:33 GMT
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 do: html render: aCollectionOfQuestions or: html div id: 'foo'; with: aQuestion And yes, it's just sort of standard I guess. Julian
RSS Feed