I will at least write a wrapper for the ListView class which uses
generics. Things like
Person person = (Person) listItem.getModelObject();
sucks!
Cu,
Dave
Eelco Hillenius wrote:
Yeah, using generics would be cool with ListView and the choice
components. I'm afraid that's to early though, unless someone wants to
start up and maintain a special Wicket branch for this.
Eelco
David Liebeherr wrote:
Johan Compagner wrote:
There has been over 10 years of Java development without generics.
I doubt that the introduction of generics makes the casts much
unsafer than the previous 10 years.
Sorry, but: Do you realy belive wroking without generics is as safe
as working with them?
There are serious reasons that Java has generics now.
If you don't understand that then it may be that you have missed
something fundamental about generics.
That is not what martijn was saying!
We have developed pretty good application from day 1 with java until
the latest version of 1.4.2 so not having generics wasn't a BIG
problem in all those years.
Well he said that he doubts that generics make casts safer.
Quite the opposite is the fact.
They don't only makeing casts much much safer but the also actually
removes the need for casts if you use them consistently.
Cu,
Dave
PS: What's about using the tool whichs converts 1.5 bytecode to 1.4
class file somone mentioned a while ago? So we could use generics an
still be able to provide the core to 1.4 users.
We are just as happy to go to generics as you. I would directly use
almost the fullset of the 1.5 features (except static imports that is
just ugly) if i could
But all my projects are still 1.4 based. And i think this will not
change this year.
johan
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user