[Seaside] OK to directly call (#renderContentOn: html) of sub-component ?

itsme213 itsme213 at hotmail.com
Sat Jan 19 06:30:14 UTC 2008


I read some time ago that a parent component should not directly call 
#renderContentOn: on its children; instead it should do (html render: 
child).

However, I've tried direct calls in a few places and it works OK; also makes 
my interfaces more uniform, as parent may wants to pass some options into 
the rendering of its child so often wants to use (child renderOn: html with: 
options).

Is there a reason to avoid doing this?

Parent>>renderContentOn: html
    html div: 'Parent stuff'.
    child renderContentOn: html

Thanks - Sophie 





More information about the seaside mailing list