Start here
Five lessons that build one application, from an empty project to a tested page with Ajax.
- 01 Build your first application Generate a project from the quickstart, run it, and build a home page with a label, a click counter and a link to a second page.
- 02 Give every page the same layout Move the header, navigation and footer of your application into a base page and two panels, so every page shares one layout.
- 03 Build a form that saves data Add a guestbook page with a form that validates its input, saves entries and lists them, and shows errors and a confirmation.
- 04 Update a page with Ajax Make the click counter and the guestbook form update only the parts of the page that change, open the form without a reload, and refresh the guestbook every ten seconds.
- 05 Test a page with WicketTester Write JUnit tests that render your pages, click links, submit the guestbook form and check Ajax updates, without a browser or a server.
Topics
Each topic gathers its lessons, how-to guides, reference and explanation on one page.
-
User guide137 pages
- Getting started Create a project, configure the application and learn what Wicket is made of. 13
- Components and markup Pages, panels, borders and fragments, and how Java components meet their HTML. 16
- Models How components get and keep their data. 7
- Forms Input fields, validation, conversion, uploads and submitting. 14
- Lists and tables Repeat markup for each item in a list, page through data. 5
- Ajax and JavaScript Update parts of a page without reloading it, and work with JavaScript. 12
- WebSockets Push updates from the server to the browser. 4
- Links and URLs Link between pages, pass parameters and shape the URLs. 9
- Resources Serve CSS, JavaScript, images and generated files. 16
- Pages and state Stateful and stateless pages, the page store and the session. 5
- Requests and lifecycle How a request is processed and what happens to a component along the way. 7
- Localization Translate texts, formats and choices. 6
- Security Log users in, restrict access and harden the application. 10
- Testing Test pages, forms and markup without a browser. 5
- Integration Spring, CDI, EJB, OSGi and monitoring. 8
Look it up
The reference pages readers return to, and an index of every class the guide explains.