[Seaside] call in child component
chaetal at gmail.com
Wed Mar 19 14:40:50 UTC 2008
1. I render a ('parent') page using:
WAParent >> renderContentOn: html
| id |
id: (id := html nextId);
with: [html render: childComponent].
(html anchor) with: 'save']
2. A 'childComponent' has an anchor inside:
WAChild >> renderContentOn: html
callback: [self addItem];
3. WAChild >> addItem calls another simple component with some form on it.
THE PROBLEM IS:
Ahcnor 'save' (from a 'parent' component) is rendered at the bottom this form.
Is there a (good) way to get rid of it? ...keeping this nesting of
components, i.e. '+' should remain a part of a 'childComponent'; I
think 'adding new item' is a part of WAChild, not WAParent, as WAChild
can be used in other contexts.
Sorry for my english and thanks in advance for all answers.
More information about the seaside