« Return to Thread: #render: or #call: components.

#render: or #call: components.

by Edward Stow :: Rate this Message:

Reply to Author | View in Thread

Hi,

I have an application that has a body section, the body section can be
rendered with two or more components.  For example:

TemplateComponent
    - HeaderComponent
    - BodyComponent - one of BodyOne | BodyTwo | etc components.
    - FooterComponent


This question may be exposing my ignorance .... but I see two ways to
'paint' my page with components in response to user interaction with
my application.

1.  #render:  During the renderContentOn phase arrange for the
component (BodyOne | BodyTwo) to be #render:ed.

2.  #call: During the action phase arrange for the component (BodyOne
| BodyTwo) to be called from the current body component.  The #call:ed
component does not #answer.

What would be best practice?

Should #call: only be used for components that you expect to #answer
like a DatePicker, ColorChooser etc?

Thanks
--

Edward Stow
_______________________________________________
seaside mailing list
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

 « Return to Thread: #render: or #call: components.