Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Wicket project uses the IModel interface to bind components to your data. For instance showing a list of people's names in Wicket 1.3 looks like

Image RemovedImage Added

Notice the ugly cast needed to get the person from the item? In Wicket 1.4 this has been modified to use generics so components know their types:

Image RemovedImage Added

This enables the Java compiler to generate errors like the following screenshot shows:

Image RemovedImage Added