Parameterized magritte components again
renggli at gmail.com
Fri Feb 12 08:10:11 MET 2010
> are not the same on one page. Is there a way to specify that I want to use the identical component if the embedded label (mycomponent) is the same? May I did something wrong but I always get different objects and it does make sense to me . Would be nice if this would bedoable. Otherwise I guess I need to do my own component-per-page-cache.
Pier creates one component instance per link that reefers to the component.
I don't think it makes sense to have the same instance of a component
twice on a page. You wouldn't do that in Seaside either. The behavior
in basically undefined since the two components share their state. In
you example it would depend on the initialization order whether the
parameter child would be set to 'title' or 'abstract'.
If you components have no state and are just plain stateless renders
you might want to look at value links.
More information about the smallwiki