Nothing says more about a framework than a few simple examples. The examples below demonstrate how easy it is to get things done in Wicket. You can also see all examples live in action without installing anything.
Beginner Examples
These examples are particularly helpful if you are new to Wicket and are reading the User Guide.
- Hello World — The classic first example. A minimal Wicket page that renders a greeting. Shows how pages, markup, and components relate to each other.
- AJAX Counter — A counter with an increment button that updates the count using Wicket’s built-in Ajax support — no JavaScript required on your part.
- Guestbook — A tiny blog demonstrating
ListViewandFormcomponents. Users can submit messages that are displayed in a list. - Markup Inheritance — Shows how to share page layouts using Wicket’s markup inheritance feature, keeping your HTML templates DRY.
- Navomatic — Automatic navigation using Borders and Links. Demonstrates how to build a reusable navigation bar with Wicket’s Border component.
- Drop-Down Choice — A short example explaining the
DropDownChoicecomponent for building select menus backed by Java models. - Using Fragments — Demonstrates Wicket Fragments, a type of inline panel that lets you define reusable markup snippets within the same HTML file.
Live Examples Server
The live examples server hosts the full Wicket example application for the current stable release, including many more examples beyond those listed above.