[Seaside] rendering in a class hierarchy

Tony Giaccone tgiaccone at gmail.com
Fri Nov 6 22:27:28 UTC 2009

First I want to thank everyone for the comments on my last request about
setting up a seaside/pharo server.  Now on to my next question.

One more about implementation.

Suppose I have a page, and the page is broken up in to components.  A menu,
a header,  a synopsis, and a detail record.  Let's focus for a second on the
detail record.

In MyApp, there are several different types of detail records, which could
be displayed in that region of the page.  They are all sub-classes of one
parent class. For the purposes of discussion, let's assume that the parent
class is MADetailDisplay, and the sub classes are MAPersonDisplay,
MAFamilyDisplay, MAAddressDisplay (though in reality the exact classes
aren't that important).

I want each of these to details to render inside  the same div on the page.

<div id="DetailDisplay">

<!-- in this space the detail component renders -->


Now it would seem very reasonable to give the parent class the
responsibility of rendering the tag that surrounds that detail component. In
that way any sub class of MADetailDisplay is going to be in the right
"location" on the page.

It's not quite clear to me how to do that in Seaside/Smalltalk. Nor is it
clear to me if this is really the right way to even think about this

Anyone care to comment?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20091106/7271897e/attachment-0001.htm

More information about the seaside mailing list