Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

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
titleBookmarkablePageLink in wicket 1.3java
 
add(new BookmarkablePageLink("signin", LoginPage.class));
Code Block
java
java
titlegenerified BookmarkablePageLink in wicket 1.4java
 
add(new BookmarkablePageLink<Void>("signin", LoginPage.class));

...