It's not just about markup attributes in constructor. It's about knowing the markup hierarchy in constructor. So the component can e.g. find out in which form it is (needed for AjaxSubmitLink for example). Without this you have to pass the form instance as constructor parameters, which is rather ugly imho.
I've been using trunk for some time and I really like the constructor change. Can't we fix somehow the problems we have with it rather than dropping the entire effort? Can we make it possible to create component with null parent and reparent it afterwards? (Just thinking loud) I know the code is more verbose, but there are also benefits. I personally don't mind couple of factory methods. What I'm not sure about are the generics. Compared to 1.x, it really gets in my way. And the benefits are not so great IMHO. It just makes things more complicated and longer. -Matej Eelco Hillenius wrote: > Hi, > > We (Wicket's developers) are having some discussion over 1.3 vs 2.0 > and how difficult it is as a nun-funded project to spend so much time > synchronizing the branches. > > A major issue in the discussion is that not everyone is convinced > anymore that the constructor change in 2.0 is for the better. There > are pros and cons for sure, but we want to get your opinion on this. > > Please help us out giving your opinion. We want to know: > > 1) Who uses 2.0 for serious projects? > > 2) What do you think of the constructor change? Do you prefer 1.3's > add style or 2.0's style of passing in the parent construction time. > > 3) If we would ever backtrack on the constructor change (*if*, don't > panic for now) how much trouble would that give you? > > Please don't be shy giving your opinion. This is an important issue in > the future development of Wicket. > > Regards, > > Eelco > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
