[Seaside] Rendering in a class hierarchy
Philippe Marschall
philippe.marschall at gmail.com
Sun Nov 8 13:05:54 UTC 2009
2009/11/8 Stephan Eggermont <stephan at stack.nl>:
> Ok. The basics. Your page renders four parts:
>
> renderContentOn: html
> self renderHeaderOn: html.
> self renderMenuOn: html.
> self renderSynopsisOn: html
> self renderDetailsOn: html.
>
> The first three parts are rendered directly,
> all similar to this one:
>
> renderheaderOn: html
> html div
> class; 'pageHeader';
> with: 'Header'
>
> the details component changes, and is tracked
> in the detail instance variable of your page.
>
> renderDetailsOn: html
> html div
> id: 'DetailDisplay';
> with: [
> html render: details]
>
> In the initialize, you have a default detail.
>
> initialize
> super initialize.
> details := MADefaultDetailDisplay new.
>
> The detail is a child.
>
> children
> ^Array with: detail
>
> When you use Announcements:
> The detail component posts an Announcement when
> something happens that a page might be interested
> in. The page subscribes (in initialize) to the Announcements
> it is interested in.
+1
way to go
Cheers
Philippe
More information about the seaside
mailing list