On 2/17/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Yeah. We need it for several reasons, the most important being that
users are currently not able to work with the full component path in
the constructor, which comes in handy when you work with _javascript_
and let components cooperate. Other than the API break, there are no
real disadvantages we can think of.
The JDK 5 changes (and advantages) can embody a lot, but probably the
most important is to use generics with IModel. Currently IModel
returns an object (and accepts for setting for that matter), which may
be anything on runtime. An example of where that causes problems -
especially for new users - is ListView. The ListView should only be
used with IModels that return instances of java.util.List. If we could
use generics, we could have the compiler enforce that. And
furthermore, having IModel like that, would help you tremendously in
tightening up your code. No more searching what model x and model y
should work with.
As you can see, the changes that we talk about are quite small on
themselves really. But pretty big if you look at the impact of both
the API break and the better usuability.
Eelco
On 2/17/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> We already have committed our self that the constructor change will happen,
> just as the java 5 stuff will happen.
> The only question is when.
>
> but the constructor change is this, now you do this:
>
> public MyWebPage()
> {
> Form form = new Form("form");
> TextField field = new TextField("text");
> form.add(field);
> add(form);
> }
>
> with the change you do this:
>
> public MyWebPage()
> {
> Form form = new Form(this,"form");
> TextField field = new TextField(form,"text");
>
> }
>
>
>
> On 2/17/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> >
> > Please is there any link where one can review the serious changes
> (advantages and disadvantages) of the Java 5 stuffs. So that one can
> actually know what he stands to gain or loose generally before casting a
> vote. Can someone show a coding difference. What already set pattern will
> really change? Just to be really sure what some of us new users are voting
> for
> >
> > Thanks
> >
> >
>
>
-------------------------------------------------------
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?cmdlnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user