[ 
https://issues.apache.org/jira/browse/WICKET-237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467857
 ] 

Igor Vaynberg commented on WICKET-237:
--------------------------------------

for even more dynamic things instead of doing this:

ComponentFactory factory=getComponentFactoryFromSomewhere();
parent.add(factory.newComponent(id));

you do this

ComponentFactory factory=getComponentFactoryFromSomewhere();
factory.newComponent(parent, id);

same effect, you just need the intermediary factory object more often in 2.0

> Constructor change, Component#add
> ---------------------------------
>
>                 Key: WICKET-237
>                 URL: https://issues.apache.org/jira/browse/WICKET-237
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 2.0
>            Reporter: Flavius Burca
>         Assigned To: Johan Compagner
>            Priority: Blocker
>
> By removing the Component#add function, the component-based architecture of 
> Wicket is compromised. 
> A component-based architecture relies on component reuse and with this 
> Constructor change you cannot have reusability of components.  
> - How could you create a dynamic component hierarchy without a Component#add 
> method ?
> - How could you allow later binding of components without a Component#add 
> method ?
> - What if you want to reuse a previously created component ?
> - What if you want to create the child component before the parent component 
> and link them at a later time ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to