Because it is imperative in many ways that the component knows it's own ID.
Look through the code to see how many times it uses it's ID.

Hope this helps.

-- 
Jeremy Thomerson
http://www.wickettraining.com

On Thu, Jan 15, 2009 at 9:40 PM, Anton Veretennikov <
anton.veretenni...@gmail.com> wrote:

> Hello all wicket users!
>
> Does anybody know why id is added to component, not to list of children,
> like:
>
> add("someId", childComponent);
>
> Thank you very much.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to