On 2 Mar 2008, at 15:29, Igor Vaynberg wrote:
a) components need to know their ids, they use them to generate markup id, etc.
it could be passed to child.render(id)
b) it is a space optimization. an array of components each with their own id is cheaper on ram/serialization space then a map.
The field would just move from child to parent. Implementation could be just as efficient e.g. still using a single array to hold children but odd spaces are ids even spaces are children.
im sure i could come up with a few more, what is really the advantage of having put(id,component) ?
The advantage is being able to use constructor injection to compose pages
John --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
