On Wed, Mar 9, 2011 at 12:22 AM, Coleman, Chris <chris.cole...@thalesgroup.com.au> wrote: >> yep, calling overridable methods from constructors is bad - > > Yes I agree... > >> you just made the case for making page.oninitialize() final... > > But isn't that the very thing that the whole overridable onInitialize method > was intended to avoid as it gets called after construction by the framework. > Any post construction code can simply be put in the onInitialize method.
the way the code is implemented page's oninitialize() would get called on first page#add() invocation and since the add() invocation is most likely inside page's constructor... -igor > > > > DISCLAIMER:--------------------------------------------------------------------------- > This e-mail transmission and any documents, files and previous e-mail messages > attached to it are private and confidential. They may contain proprietary or > copyright > material or information that is subject to legal professional privilege. They > are for > the use of the intended recipient only. Any unauthorised viewing, use, > disclosure, > copying, alteration, storage or distribution of, or reliance on, this message > is > strictly prohibited. No part may be reproduced, adapted or transmitted > without the > written permission of the owner. If you have received this transmission in > error, or > are not an authorised recipient, please immediately notify the sender by > return email, > delete this message and all copies from your e-mail system, and destroy any > printed > copies. Receipt by anyone other than the intended recipient should not be > deemed a > waiver of any privilege or protection. Thales Australia does not warrant or > represent > that this e-mail or any documents, files and previous e-mail messages > attached are > error or virus free. > -------------------------------------------------------------------------------------- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org