On 3/7/07, aozster <[EMAIL PROTECTED]> wrote:


Eelco Hillenius wrote:
>
> 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.
>
> ----> After I've read wiki about the constructor change I suddenly
oppose
> this idea.
> Why ?
>       - Component should not rely on language level constructor for
domain
> specific life cycle ( It actually defines life cycle for JVM/CLR level
> object,or component ),


constructors have nothing to do with the "vm"

It should rely on component container life cycle
> service which specify the life cycle method and contract for component
> developer, init beforeAttach afterAttach beforeRender afterRender etc.


wicket is not a managed framework. you are in charge of instantiation the
components, thus constructors.

      - Component architecture for specific domain like GUI  should define
> life cycle method that ensure "which resources are avaliable" in that
> method.


we do, but like i said we let you be in control of instantiation because we
believe that delivers you the most flexibility

      - By assuming that component should have knowledge about the
> enclosing structure in constructor, It means
> "Sturcture of the enclosing component should avaiable before it can be
> constructed" or
> every components should know about the structure they will live in
before
> they can be constructed which make component more dependent.


yes but this is a gui framework with markup. you cant really compare it to
layout manager gui frameworks. this is also a framework where you have
separation of concerns, designers, etc. so we have a few special
requirements.

-igor
-------------------------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to