...
Most users - having wicket 1.3 code and migrating to 1.4 - will get many "compile warnings" due to generics.
The reason is the new typesafety. The class Component got "generified" and because all Wicket components extend Component, they require a generic too.
But for most Components that doesn't make too much sense. Therefore you should use Void as the generic.
Some Examples:
Code Block |
---|
| java |
---|
| java |
---|
title | BookmarkablePageLink in wicket 1.3java |
---|
|
add(new BookmarkablePageLink("signin", LoginPage.class));
|
Code Block |
---|
| java |
---|
| java |
---|
title | generified BookmarkablePageLink in wicket 1.4java |
---|
|
add(new BookmarkablePageLink<Void>("signin", LoginPage.class));
|
...