Good example. Thanks for clarifying.

igor.vaynberg wrote:
> 
> one usecase is when you want the user to be able to change which
> components will be created.
> 
> this is bad:
> 
> class mycomponent extends panel {
>   public mycomponent(string id) { add(newCounter("counter")); }
>   protected Component newCounter(String id) { return new Label(id, ....);
> }
> }
> 
> because you are calling an overridable method from constructor
> 

-- 
View this message in context: 
http://old.nabble.com/What-about-an-onInitialRender-method---tp28122954p28123955.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to