Ok,
Now if someone would put these releases (1.2 and 2.0) to timeline
(just roughly), I could start discussing here locally about the change.
Ari S.
----- Original Message -----
From: "Martijn Dashorst" <[EMAIL PROTECTED]>
To: <wicket-develop@lists.sourceforge.net>
Sent: Thursday, January 19, 2006 10:52 AM
Subject: Re: [Wicket-develop] remove add() and pass parent in constructor?
On 1/19/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
This is such so fundamendal change, in simple applications
that have just forms with zillions of fields backed up by database
models it affects almost all user interface code.
We know this is not good. That is why we are figuring out what to do, and
don't 'just do it'.
We want this change to be implemented as fast as possible, so it will hurt
less people. Wicket still gains traction, and when we release 1.2, the
number of new users will increase.
I really sympathise with current applications, as the current API breakage
of 1.2 is very localized: just the settings and that will cause minor
problems. The constructor change will be a major overhaul and like you said,
it requires a whole application to be readjusted.
Stuck between a rock and a hard place I guess.
IMO the best way to go about it is to release 1.2 /quietly/, go into
maintenance mode for 1.2, do the constructor thing in 2.0 and any other API
changes, release that as soon as possible, and build from there. There
shouldn't be too many weeks between 1.2 final and 2.0 for this to work.
Martijn
Ari S.
----- Original Message -----
From: "Igor Vaynberg" <[EMAIL PROTECTED]>
To: <wicket-develop@lists.sourceforge.net>
Sent: Monday, January 16, 2006 7:18 PM
Subject: [Wicket-develop] remove add() and pass parent in constructor?
hello all,
we, the core devel group, have been discussing and evaluating a possible
change we would like to make for the next release and we would like your
input.
the idea is to remove the Component.add(Component child) method and link
components via a constructor instead: Component(Component parent, String
id)
this has a couple of advantages:
* have access to markup the component is attached to in the constructor.
that means you can read attributes and initialize your component
appropriately. it also means we can eliminate the use of attribute
modifiers
for non-dynamic attribute replacement.
* we can fail super-early if there is a mismatch between component and
markup hierachies. currently we dont fail until render time, with this
change we can fail in the Component constructor - so before the component
is
actually created. this will give you a line precise error in markup AND
java
code.
* getPage() and getPath() will work in the component's constructor. this
is
really nice for ajax stuff.
the big disadvantage of course is that we will break ALL existing code. it
is a simple change to fix though. a hybrid of this and add() will not work
because all links in the chain need to use the new constructor for it to
work.
we would also provide Component.remove() and Component.readd() which
remove/readd component to its parent. so the link between parent and child
is now managed on the child's side instead of the parent's side. this, of
course, makes it impossible to move components between parents - is there
a
usecase for this?
please provide us with feedback/concerns so we have a better feel for
requirements out there.
thanks,
-Igor
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop
--
Living a wicket life...
Martijn Dashorst - http://www.jroller.com/page/dashorst
Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop