[Seaside] Rendering in a class hierarchy

Stephan Eggermont stephan at stack.nl
Sun Nov 8 12:34:33 UTC 2009


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.

Stephan Eggermont





More information about the seaside mailing list