[Seaside] Rendering embedded WAComponents
Esteban A. Maringolo
eMaringolo at smalltalking.net
Tue Mar 2 15:48:07 CET 2004
Hello:
I'm doing my first tests with Seaside, particulary embedding components
(aWAComponent) inside of another. I am doing it in this way:
aWAComponent>>renderContentOn:html
html
render: aWASubComponent;
render: otherWASubComponent.
This far, it goes well.
The problem arises when i send #do: to a "model" object of a WAComponent,
e.g.
aWAComponent>>renderContentOn:html
html heading: 'Model components:'.
model components do: [:each |
html render: (WAModelView on: each); break.]
WAModelView class>>on: anObject
^self new setModel: anObject.
It should render the html generated on the WAModelView>>renderContentOn:,
but it doesn't. Instead, it renders the "printString" of the WAComponent.
It renders:
Model components:
aWAModelView
aWAModelView
aWAModelView
aWAModelView
aWAModelView
(suposing it has 5 components).
Does somebody knows why happens this?
Regards,
--
Esteban A. Maríngolo
More information about the Seaside
mailing list