wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Patterson <jdp2...@gmail.com>
Subject Re: Wicket id in component
Date Sun, 02 Mar 2008 08:43:15 GMT
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message