Hi, To solve https://issues.apache.org/jira/browse/WICKET-4361 I moved the call to Component#internalOnMarkupAttached() from MarkupContainer#add() to Component#onInitialize(). This change both solves the problem with the early load of the page's markup and improved a bit the performance because now there is no iteration over the children of the added component to call their #internalOnMarkupAttached().
Now I think Component#onMarkupAttached() becomes obsolete. #onInitialize() serves the same purpose, Should we deprecate it in 1.5.x and remove it in 6.0 ? The commit diff is: http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=commitdiff;h=557e43527a43dde43aa4e68d34a2a99bfabef210 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com
