I'm doing the following:
renderContentOn: html
html render: ((self parent person asComponent)
readonly: true;
yourself ).
html form with: [html submitButton callback: [self editClient];
value: 'edit']
To view a model object... everything seems to work fine. When
I toggle halos and try to see source or inspect one of the
Magritte components, it fails, because they aren't being
returned by #children anywhere. Is there a way I can cache
the component, or do this a different way?
Thanks,
Brian
Common mistake, you don't use asComponent on the fly like that. You need to
stick the result of asComponent into an instance variable, return it from
children, and then use html render: on the instance variable. Seaside
components are stateful, instance variables stick around between page
requests.
Ramon Leon
http://onsmalltalk.com