[ 
https://issues.apache.org/jira/browse/WICKET-6335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikhail Fursov updated WICKET-6335:
-----------------------------------
    Description: 
Class org.apache.wicket.extensions.markup.html.repeater.tree.Node calls pure 
virtual method createContent() from constructor.

Because of this call a class that implements Node has no chance to initilalize 
itself before createContent() method is called.

I believe the whole constructor of Node class can be safely moved to 
onInitialize method.

  was:
Class org.apache.wicket.extensions.markup.html.repeater.tree.Node calls pure 
virtual method createContent() from constructor.

Because of this call a class that implements Node has no chance to initilalize 
it's state before createContent() method call.

I believe the whole constructor of Node class can be safely moved to 
onInitializeMethod.


> tree.Node calls virtual methods from constructor
> ------------------------------------------------
>
>                 Key: WICKET-6335
>                 URL: https://issues.apache.org/jira/browse/WICKET-6335
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-extensions
>    Affects Versions: 8.0.0-M4
>            Reporter: Mikhail Fursov
>
> Class org.apache.wicket.extensions.markup.html.repeater.tree.Node calls pure 
> virtual method createContent() from constructor.
> Because of this call a class that implements Node has no chance to 
> initilalize itself before createContent() method is called.
> I believe the whole constructor of Node class can be safely moved to 
> onInitialize method.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to